I'm trying to use the AspNet Zero Power tool to create new Entities. While I was able to generate the APIs, migrations, database tables successfully, the angular part throw the following errors in the serviceproxy file.
src/app/admin/countries/countries/create-or-edit-country-modal.component.ts:4:33 - error TS2305: Module '"../../../../shared/service-proxies/service-proxies"' has no exported member 'CreateOrEditCountryDto'.
Please let me know if I'm missing somthing here.
- Product version is 10.3.
- Product type is Angular.
- Product framework type is .net core.
- Currently using the default theme.
5 Answer(s)
-
0
Hi @shridhar.mole
Can you please check if
CreateOrEditCountryDto
exist in server side. If exist runnpm run nswag
in a commond prompt in angular directory and see if new service proxy has same error. -
0
-
0
Hi @shridhar.mole
Sorry for our late response. Could you share your generated json file for this entity ? You can find it under AspNetZeroRadTool folder in your project.
Thanks,
-
0
@ismcagdas
`{ "IsRegenerate": false, "MenuPosition": "admin", "RelativeNamespace": "Countries", "EntityName": "Country", "EntityNamePlural": "Countries", "TableName": "TrCountries", "PrimaryKeyType": "int", "BaseClass": "Entity", "EntityHistory": false, "AutoMigration": true, "UpdateDatabase": true, "CreateUserInterface": true, "CreateViewOnly": true, "CreateExcelExport": true, "IsNonModalCRUDPage": false, "IsMasterDetailPage": false, "PagePermission": { "Host": true, "Tenant": false }, "Properties": [ { "Name": "Name", "Type": "string", "MaxLength": 100, "MinLength": 0, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": true, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true } } ], "NavigationProperties": [], "NavigationPropertyOneToManyTables": [], "EnumDefinitions": [], "DbContext": null }`
-
0
Hi @shridhar.mole
I could not reproduce the problem. Can you please share your project or a project that contains that problem? You can send them to [email protected]