Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Error when Using Powertools #11948


User avatar
0
Bernard created

Hi,

I've this issue when generating entity


2 Answer(s)
  • User Avatar
    0
    Bernard created

    { "IsRegenerate": true, "MenuPosition": "main", "RelativeNamespace": "Administratif", "EntityName": "LigneConvention", "EntityNamePlural": "LigneConventions", "TableName": "LigneConventions", "PrimaryKeyType": "int", "BaseClass": "Entity", "EntityHistory": false, "AutoMigration": true, "UpdateDatabase": true, "CreateUserInterface": true, "CreateViewOnly": true, "CreateExcelExport": true, "CreateExcelImport": true, "IsNonModalCRUDPage": false, "IsMasterDetailPage": false, "GenerateOverridableEntity": false, "GenerateUnitTest": false, "GenerateUiTest": false, "PagePermission": { "Host": true, "Tenant": true }, "Properties": [ { "Name": "Intitule", "Type": "string", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} }, { "Name": "ProduitsBPF", "Type": "ListeProduitsBPF", "MaxLength": 0, "MinLength": 0, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": false, "List": false, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} }, { "Name": "AutresProduitsBPF", "Type": "ListeAutreProduitBPF", "MaxLength": 0, "MinLength": 0, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": false, "List": false, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} }, { "Name": "PrixU", "Type": "decimal", "MaxLength": 0, "MinLength": 0, "Range": { "IsRangeSet": true, "MinimumValue": 0.0, "MaximumValue": 500.0 }, "Required": false, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": false, "List": true, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} }, { "Name": "Unite", "Type": "TypeUnite", "MaxLength": 0, "MinLength": 0, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": false, "List": true, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} }, { "Name": "Format", "Type": "TypeFormat", "MaxLength": 0, "MinLength": 0, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": false, "List": true, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} }, { "Name": "Reference", "Type": "string", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": false, "List": false, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} } ], "NavigationProperties": [ { "Namespace": "ERUDY.Administratif", "ForeignEntityName": "Convention", "ForeignEntityNamePlural": "Conventions", "IdType": "int", "IsNullable": true, "PropertyName": "ConventionId", "DuplicationNumber": 0, "RelationType": "single", "ViewType": "LookupTable", "DisplayPropertyNameInfos": { "MergeFormat": null, "DisplayPropertyNames": [] } } ], "NavigationPropertyOneToManyTables": [], "EnumDefinitions": [ { "Name": "ListeProduitsBPF", "Namespace": "ERUDY.Administratif", "EnumProperties": [ { "Name": "NA", "Value": 1 }, { "Name": "C1", "Value": 10 }, { "Name": "C1a", "Value": 20 }, { "Name": "C1b", "Value": 30 }, { "Name": "C1c", "Value": 40 }, { "Name": "C1d", "Value": 50 }, { "Name": "C1e", "Value": 60 }, { "Name": "C3", "Value": 70 }, { "Name": "C4", "Value": 80 }, { "Name": "C5", "Value": 90 }, { "Name": "C6", "Value": 100 }, { "Name": "C7", "Value": 110 }, { "Name": "C8", "Value": 120 }, { "Name": "C9", "Value": 130 }, { "Name": "C10", "Value": 140 }, { "Name": "C11", "Value": 150 } ] }, { "Name": "ListeAutreProduitBPF", "Namespace": "ERUDY.Administratif", "EnumProperties": [ { "Name": "NA", "Value": 1 }, { "Name": "C12", "Value": 10 }, { "Name": "C13", "Value": 14 } ] }, { "Name": "TypeUnite", "Namespace": "ERUDY.Administratif", "EnumProperties": [ { "Name": "Participant", "Value": 10 }, { "Name": "Groupe", "Value": 20 }, { "Name": "Produit", "Value": 30 } ] }, { "Name": "TypeFormat", "Namespace": "ERUDY.Administratif", "EnumProperties": [ { "Name": "Heure", "Value": 10 }, { "Name": "Jour", "Value": 20 }, { "Name": "Forfait", "Value": 30 }, { "Name": "Piece", "Value": 40 } ] } ], "DbContext": null }

  • User Avatar
    0
    m.aliozkaya created
    Support Team

    Hi @Bernard,

    It looks like the entity file's navigation property field is not correct. Could you update DisplayNameInfos manually similar to following json

      "DisplayPropertyNameInfos": {
        "MergeFormat": "{0}",
        "DisplayPropertyNames": [
          "CName"
        ]
      }
    
      "NavigationProperties": [
        {
          "Namespace": "ERUDY.Administratif",
          "ForeignEntityName": "Convention",
          "ForeignEntityNamePlural": "Conventions",
          "IdType": "int",
          "IsNullable": true,
          "PropertyName": "ConventionId",
          "DuplicationNumber": 0,
          "RelationType": "single",
          "ViewType": "LookupTable",
          "DisplayPropertyNameInfos": {
            "MergeFormat": null,
            "DisplayPropertyNames": []
          }
        }
      ],