Base solution for your next web application
Open Closed

Power Tools - can't regenerate an entity that has navigation properties #11395


User avatar
0
lschelvan created

When trying to regenerate an entity that has navigation properties:


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @lschelvan

    Could you share which version of Power Tools do you use ? If it is the latest version, could you share the generated JSON files ?

  • User Avatar
    0
    lschelvan created

    Here is one example.

    I am also trying to use this child entity for Master-Detail, but I am unable to generate Master-Detail entities. (See https://support.aspnetzero.com/QA/Questions/11379/Power-Tools-Master---Detail-problems )

    I am using Power Tools 3.2.4 but had the same problems with 3.2.3. I have reinstalled Power Tools several times. I am very frustrated because Power Tools was the main reason I purchased the AspNetZero license, but so far I have been unable to make progress on this project.

    { "IsRegenerate": true, "MenuPosition": "main", "RelativeNamespace": "Items", "EntityName": "ItemSubcategory", "EntityNamePlural": "ItemSubcategories", "TableName": "ItemSubcategories", "PrimaryKeyType": "long", "BaseClass": "Entity", "EntityHistory": false, "AutoMigration": false, "UpdateDatabase": false, "CreateUserInterface": true, "CreateViewOnly": true, "CreateExcelExport": true, "IsNonModalCRUDPage": true, "IsMasterDetailPage": false, "PagePermission": { "Host": true, "Tenant": true }, "Properties": [ { "Name": "Subcategory", "Type": "string", "MaxLength": 50, "MinLength": 0, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": true, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} } ], "NavigationProperties": [{ "Namespace": "WMSPlatform.Items", "ForeignEntityName": "ItemCategory", "IdType": "long", "IsNullable": false, "PropertyName": "ItemCategoryId", "DisplayPropertyName": "Category", "DuplicationNumber": 0, "RelationType": "single", "ViewType": "LookupTable", "IsGeneratedByMasterPage": true },], "NavigationPropertyOneToManyTables": [], "EnumDefinitions": [], "DbContext": null }

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @lschelvan

    We will release the fix for this problem in a few days. You can manually fix the generated code until then.