Hi Ismcagdas, I cannot find how to attach the file. So I paste the content of the file: <span class="colour" style="color: rgb(0, 0, 0);">"aspnet-core\AspNetZeroRadTool</span>Dbo.QReservations.json<span class="colour" style="color: rgb(0, 0, 0);">".</span> <span class="colour" style="color: rgb(0, 0, 0);">If you need the other files of information, please let me know.</span>
I appreciate your help.
---------------------------------- Dbo.QReservations.json: { "IsRegenerate": true, "MenuPosition": "main", "RelativeNamespace": "Dbo", "EntityName": "QReservations", "EntityNamePlural": "QReservationses", "TableName": "QReservationses", "PrimaryKeyType": "int", "BaseClass": "Entity", "EntityHistory": false, "AutoMigration": true, "UpdateDatabase": true, "CreateUserInterface": true, "CreateViewOnly": true, "CreateExcelExport": true, "IsNonModalCRUDPage": false, "IsMasterDetailPage": false, "PagePermission": { "Host": true, "Tenant": true }, "Properties": [ { "Name": "NameSurname", "Type": "string", "MaxLength": 100, "MinLength": 1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": true, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true } }, { "Name": "CheckinDate", "Type": "DateTime", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true } }, { "Name": "TotalNights", "Type": "int", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": true, "MinimumValue": 1.0, "MaximumValue": 30.0 }, "Required": false, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true } }, { "Name": "IsPaid", "Type": "bool", "MaxLength": -1, "MinLength": -1, "Range": { "IsRangeSet": false, "MinimumValue": 0.0, "MaximumValue": 0.0 }, "Required": false, "Nullable": false, "Regex": "", "UserInterface": { "AdvancedFilter": true, "List": true, "CreateOrUpdate": true } } ], "NavigationProperties": [], "NavigationPropertyOneToManyTables": [], "EnumDefinitions": [], "DbContext": null }
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
I try power tool as addon in VS2019. I followed the instruction: ASP.NET Zero Introduction and Features (https://www.youtube.com/watch?v=OsSdNkwmC7I&t=1001s).
After generating entity "QReservationses", I ran nswag/refresh.bat and found both "shared/service-proxies/service-proxies.ts" and "service-proxies.module.ts" was updated with service.
As the document (https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Infrastructure-Angular-NSwag), it asks to manually add for "service-proxies.module.ts". Please help me to clarify this point.
Server is started correctly. But it encountered error while starting client with command "npm start":
./src/app/shared/layout/nav/app-navigation.service.ts:7:0 - Error: Module parse failed: Unexpected token (7:0) File was processed with these loaders:
; | export class AppNavigationService { | constructor(_permissionCheckerService, _appSessionService) {
Error: src/app/shared/layout/nav/app-navigation.service.ts:3:13 - error TS1109: Expression expected.
3 import { PermissionCheckerService } from 'abp-ng2-module'; ~~~~~~
** Angular Live Development Server is listening on 0.0.0.0:4200, open your browser on http://localhost:4200/ **
√ Browser application bundle generation complete.
1740 unchanged chunks
Build at: 2021-12-02T02:24:32.587Z - Hash: ff3031625fde1fa5b5dc - Time: 4000ms
./src/app/shared/layout/nav/app-navigation.service.ts:7:0 - Error: Module parse failed: Unexpected token (7:0) File was processed with these loaders:
; | export class AppNavigationService { | constructor(_permissionCheckerService, _appSessionService) {
Error: src/app/shared/layout/nav/app-navigation.service.ts:3:13 - error TS1109: Expression expected.
3 import { PermissionCheckerService } from 'abp-ng2-module';
Please advise me.