Base solution for your next web application
Open Closed

Asp Net Zero Tool Create Entity Issue #12573


User avatar
0
MarturAbpUser created

Hello,

We want to create a new entity and page using the tool. However, we are receiving the following error. The process is not finish. Some classes are being created. The database table and pages in Angular are not being created.

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

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

    Hi @MarturAbpUser

    Thank you for reaching out. Could you please share your ASP.NET Power Tools version, your ASP.NET Zero project version, and your project's aspnet-core/AspNetZeroRadTool/DefectPage.Defect.json file with us? This file stores the settings you enter in Power Tools when creating entities. This will allow us to reproduce the issue on our end. Thank you.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    MarturAbpUser created

    DefectPage.Defect.json

    { "IsRegenerate": false, "MenuPosition": "main", "RelativeNamespace": "DefectPage", "EntityName": "Defect", "EntityNamePlural": "Defects", "TableName": "Defects", "PrimaryKeyType": "int", "BaseClass": "Entity", "EntityHistory": false, "AutoMigration": true, "UpdateDatabase": true, "CreateUserInterface": true, "CreateViewOnly": true, "CreateExcelExport": false, "CreateExcelImport": false, "IsNonModalCRUDPage": true, "IsMasterDetailPage": false, "GenerateOverridableEntity": false, "GenerateUnitTest": false, "GenerateUiTest": false, "GenerateMobile": false, "CreateMauiView": false, "PagePermission": { "Host": false, "Tenant": true }, "Properties": [ { "Name": "DefectCode", "Type": "string", "MaxLength": 20, "MinLength": 1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": true, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": false, "List": true, "ListMaui": false, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} }, { "Name": "DefectName", "Type": "string", "MaxLength": 100, "MinLength": 3, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": true, "Nullable": false, "Regex": "", "IsMultiLingual": false, "UserInterface": { "AdvancedFilter": false, "List": true, "ListMaui": false, "CreateOrUpdate": true }, "ViewType": null, "AdditionalData": {} } ], "NavigationProperties": [], "NavigationPropertyOneToManyTables": [], "EnumDefinitions": [], "DbContext": null }

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @MarturAbpUser

    Have you tried regenerating this entity using the Regenerate feature in ASP.NET Zero Power Tools? We couldn’t reproduce the issue on our side when testing the same scenario.

    Please make sure that there are no lint errors on the Angular side during generation, and that the file path and name have not been changed. Also, ensure that your database is in sync with your migrations by opening the EntityFrameworkCore project folder in the terminal and running:

    dotnet ef database update
    

    If the issue persists after regenerating, please don’t hesitate to contact us again.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)