0
grinay created
Hi. I download latest source 5.4.1. I'm developing on Mac. For database I'm using mssql in docker. Everything work fine, I setting up database connection string in appsetting.json and apply migrations. Everything work except RADTool.
{
"IsRegenerate": true,
"MenuPosition": "admin",
"RelativeNamespace": "DNSServer",
"EntityName": "DNSServer",
"EntityNamePlural": "DNSServers",
"TableName": "DNSServers",
"PrimaryKeyType": "int",
"BaseClass": "Entity",
"AutoMigration": true,
"UpdateDatabase": true,
"CreateUserInterface": true,
"CreateViewOnly": false,
"CreateExcelExport": true,
"PagePermission": {
"Host": true,
"Tenant": false
},
"Properties": [
{
"Name": "Address",
"Type": "string",
"MaxLength": 255,
"MinLength": 3,
"Range": {
"IsRangeSet": false,
"MinimumValue": 0,
"MaximumValue": 0
},
"Required": true,
"Nullable": false,
"Regex": "",
"UserInterface": {
"AdvancedFilter": true,
"List": true,
"CreateOrUpdate": true
}
},
{
"Name": "Description",
"Type": "string",
"MaxLength": 255,
"MinLength": 0,
"Range": {
"IsRangeSet": false,
"MinimumValue": 0,
"MaximumValue": 0
},
"Required": false,
"Nullable": false,
"Regex": "",
"UserInterface": {
"AdvancedFilter": true,
"List": true,
"CreateOrUpdate": true
}
}
],
"NavigationProperties": [],
"EnumDefinitions": []
}
I generate Json file with RADTool on windows. Then I copy only one json file to AspNetZeroRadTool on Mac. After I've tried to apply this by
$ dotnet AspNetZeroRadTool.dll DNSServer.json
I getting error to add migration and update database. Help me find out.
-> Test.Application.Shared\DNSServer\IDNSServersAppService.cs is being generated.
-> Test.Application\DNSServer\Exporting\DNSServersExcelExporter.cs is being generated.
-> Test.Core\DNSServer\DNSServer.cs is being generated.
-> Test.Application\DNSServer\Exporting\IDNSServersExcelExporter.cs is being generated.
-> Test.Application\DNSServer\DNSServersAppService.cs is being generated.
-> Test.Core.Shared\DNSServer\DNSServerConsts.cs is being generated.
-> Test.Application.Shared\DNSServer\Dtos\GetAllForLookupTableInput.cs is being generated.
-> Test.Application.Shared\DNSServer\Dtos\CreateOrEditDNSServerDto.cs is being generated.
-> Test.Application.Shared\DNSServer\Dtos\GetDNSServerForView.cs is being generated.
-> Test.Application.Shared\DNSServer\Dtos\GetAllDNSServersInput.cs is being generated.
-> Test.Application.Shared\DNSServer\Dtos\GetAllDNSServersForExcelInput.cs is being generated.
-> Test.Application.Shared\DNSServer\Dtos\GetDNSServerForEditOutput.cs is being generated.
-> Test.Application.Shared\DNSServer\Dtos\DNSServerDto.cs is being generated.
-> \..\src\Test.Core\Authorization\AppPermissions.cs is being modified.
-> \..\src\Test.Core\Authorization\AppAuthorizationProvider.cs is being modified.
-> \..\src\Test.EntityFrameworkCore\EntityFrameworkCore\TestDbContext.cs is being modified.
-> \..\src\Test.Application\CustomDtoMapper.cs is being modified.
Running add-migration...
Could not run add-migration
Running update-database...
Could not run update-database
-> app\admin\DNSServer\dNSServers\dNSServers.component.ts is being generated.
-> app\admin\dNSServer\dNSServers\dNSServers.component.html is being generated.
-> app\admin\DNSServer\dNSServers\create-or-edit-dNSServer-modal.component.html is being generated.
-> app\admin\DNSServer\dNSServers\create-or-edit-dNSServer-modal.component.ts is being generated.
-> \..\..\angular\src\app\admin\admin.module.ts is being modified.
-> \..\..\angular\src\app\admin\admin-routing.module.ts is being modified.
-> \..\..\angular\src\app\shared\layout\nav\app-navigation.service.ts is being modified.
-> \..\..\angular\src\shared\service-proxies\service-proxy.module.ts is being modified.
-> \..\src\Test.Core\Localization\Test\Test.xml is being modified.