2023-02-01 22:27:46.364 +03:00 [INF] 1/8 - EntityGenerateCommand started...
2023-02-01 22:27:46.392 +03:00 [ERR] ---------- RemoteServiceErrorInfo ----------
{
"code": null,
"message": "An internal error occurred during your request!",
"details": null,
"data": {},
"validationErrors": null
}
2023-02-01 22:27:46.394 +03:00 [ERR] StartIndex cannot be less than zero. (Parameter 'startIndex')
System.ArgumentOutOfRangeException: StartIndex cannot be less than zero. (Parameter 'startIndex')
at System.String.ThrowSubstringArgumentOutOfRange(Int32 startIndex, Int32 length)
at System.String.Substring(Int32 startIndex)
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.yuTUj3U4io(Boolean , String , String )
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.ro9U4s63A3(Boolean )
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.P0DjoGvf0Y()
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.ExecuteAsync(CrudPageCommandOptions options)
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.CommandManager.ExecuteAllAsync(CrudPageCommandOptions options)
at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.CrudPageGenerator.GenerateAsync(EntityModel entity, Solution solution)
at Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync(Guid solutionId, EntityModel entity)
at lambda_method2022(Closure, Object)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2023-02-01 22:27:46.404 +03:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'.
2023-02-01 22:27:46.404 +03:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite) in 168.82ms
2023-02-01 22:27:46.404 +03:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite)'
2023-02-01 22:27:46.404 +03:00 [INF] Request finished HTTP/1.1 POST http://localhost:3000/api/abpSuite/crudPageGenerator/588e4183-b13b-4eaa-b725-bed37a83b973/save-and-generate-entity application/json 5653 - 500 - application/json;+charset=utf-8 169.2439ms
{
"Id": "c7dc1f48-89d7-417e-97ad-fcb8d2e078f5",
"Name": "MITItem",
"OriginalName": "MITItem",
"NamePlural": "MITItems",
"DatabaseTableName": "MITItems",
"Namespace": "MITs",
"BaseClass": "FullAuditedAggregateRoot",
"MenuIcon": "tools",
"PrimaryKeyType": "int",
"IsMultiTenant": false,
"CheckConcurrency": true,
"ShouldCreateUserInterface": false,
"ShouldCreateBackend": true,
"ShouldExportExcel": false,
"ShouldAddMigration": true,
"ShouldUpdateDatabase": true,
"CreateTests": false,
"Properties": [
{
"Id": "b124bb7e-c962-4a10-8dd1-4f7539bf3eac",
"Name": "Code",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": true,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "[a-zA-Z0-9.-]*",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "6b7f1739-b91f-4056-849e-9f98df382e4d",
"Name": "Name",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": true,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "[a-zA-Z0-9\\-_ .]*",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "6c90c2f7-de33-4757-872e-22d86ae9317a",
"Name": "DisplayName",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "f0c010c1-2dfd-40d6-a0c1-cfe96500f60b",
"Name": "Description",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "9f916871-c973-420b-b74b-b96bde46524f",
"Name": "Hint",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "ae86f1c3-85b8-45fb-9357-4b84e989df45",
"Name": "HintAsHtml",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "651f0581-df06-4b64-aff0-67d9ae59a715",
"Name": "DatabaseValue",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": true,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "[a-zA-Z0-9-\\.]*",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "930548ff-9590-4816-af77-b0212c0ca355",
"Name": "DisplayValue",
"Type": "string",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "[a-zA-Z0-9\\-_ .]*",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "feea4237-8917-440b-916f-c6b9a6cf088c",
"Name": "SortOrder",
"Type": "int",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": null,
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 1,
"SortType": 1,
"Regex": "",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "a16a6bfd-9d67-4def-bb05-1297e8bae731",
"Name": "IsFactory",
"Type": "bool",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": "false",
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
},
{
"Id": "94e29170-0655-4b18-b4a6-63a3e6560f23",
"Name": "IsActive",
"Type": "bool",
"EnumType": "",
"EnumNamespace": "",
"EnumAngularImport": "shared/enums",
"EnumFilePath": null,
"DefaultValue": "true",
"IsNullable": false,
"IsRequired": false,
"IsTextArea": false,
"MinLength": null,
"MaxLength": null,
"SortOrder": 0,
"SortType": 0,
"Regex": "",
"EmailValidation": false,
"EnumValues": null,
"IsSelected": true,
"OrdinalIndex": 0
}
],
"NavigationProperties": [
{
"EntityNameWithDuplicationNumber": "MITCatalog",
"EntitySetNameWithDuplicationNumber": "Catalogs",
"ReferencePropertyName": "Catalog",
"UiPickType": "Typeahead",
"IsRequired": true,
"Name": "CatalogId",
"DisplayProperty": "DisplayName",
"Namespace": "SchoolAut0mater.CoreService.MITCatalogs",
"EntityName": "MITCatalog",
"EntitySetName": "Catalogs",
"DtoNamespace": "SchoolAut0mater.CoreService.MITCatalogs",
"DtoEntityName": "MITCatalogDto",
"Type": "int"
}
],
"NavigationConnections": [],
"PhysicalFileName": "MITItem.json"
}
abp suite
save and generate
ABP Framework version: v7.0.0
UI type: Angular
DB provider: EF Core
Steps to reproduce the issue:
I am having a few issues with the module template. I created a new module solution in abp suite and set it up using the below guide :
https://docs.abp.io/en/abp/latest/Startup-Templates/Module#how-to-start-with
I have added a core module to the main solution using the abp suite and was able to add an entity to core as well. The suite only generates mvc frontend and does not generate any angular files. How could we generate angular files as well for the new entities? I am also having issues generating proxies for the entities. I get the same error even after specifying the module. Kindly advise
abp generate-proxy -t ng ABP CLI 7.0.0 DEPRECATED: The 'defaultProject' workspace option has been deprecated. The project to use will be determined from the current working directory. [Invalid Module] Backend module "app" does not exist in API definition.
abp generate-proxy -t ng -m dev-app
ABP CLI 7.0.0
DEPRECATED: The 'defaultProject' workspace option has been deprecated. The project to use will be determined from the current working directory.
[Invalid Module] Backend module "dev-app" does not exist in API definition.
I have followed the steps as mentioned in the below document to add a microservice to our solution. I am able to run the application and add entities but the angular components are not generated using the CRUD page generator.
https://docs.abp.io/en/commercial/7.0/startup-templates/microservice/add-microservice
Exception message :
Angular Schematics command failed. file:///Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/apps/angular/.suite/schematics/node_modules/execa/lib/error.js:59 error = new Error(message); ^
Error: Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template microservice-pro --target SchoolAut0mater.CoreService --source /Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/services/core/.suite/entities/AcademicTerm.json Cannot read properties of undefined (reading 'forEach') at makeError (file:///Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/apps/angular/.suite/schematics/node_modules/execa/lib/error.js:59:11) at handlePromise (file:///Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/apps/angular/.suite/schematics/node_modules/execa/index.js:119:26) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async file:///Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/apps/angular/.suite/schematics/run-schematics.mjs:6:20 { shortMessage: 'Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template microservice-pro --target SchoolAut0mater.CoreService --source /Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/services/core/.suite/entities/AcademicTerm.json', command: '.suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template microservice-pro --target SchoolAut0mater.CoreService --source /Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/services/core/.suite/entities/AcademicTerm.json', escapedCommand: '".suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" --template microservice-pro --target SchoolAut0mater.CoreService --source "/Users/abeer/Projects/abp.io/abp.io.7-preview/SchoolAut0mater/services/core/.suite/entities/AcademicTerm.json"', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: '', stderr: "Cannot read properties of undefined (reading 'forEach')", failed: true, timedOut: false, isCanceled: false, killed: false }
Please find the github repository and documentation below to view the steps and reproduce the issue:
--- removed by gterdem ---
We would like to create a microservice solution with a custom microservice Core and be able to generate angular components for the entities AcademicYear and AcademicTerm. We would then need to regenerate proxies for custom functions created on the server side. We would also need to additionally add lookup components for AcademicTerm. Please let me know the steps for the same and how to resolve the above issue.
Updated to dotnet 7, created a fresh download from abp.suite using the command please note dotnet tools (Volo.Abp.Cli), abp, and Visual Studio are updated to 7
abp new SchoolAut0mater -t microservice-pro -u angular --output-folder "$(PWD)" -csf --preview
then run the below command
.\etc\docker\up.ps1
.\etc\dev-cert\create-certificate.ps1
.\build /graphBuild
CD '\shared\SchoolAut0mater.DbMigrator' && dotnet run
got error
...
...
[16:27:33 INF] Initialized all ABP modules.
[16:27:33 INF] Migrating Host side...
[16:27:33 INF] Migrating SaasService database...
[16:27:34 INF] Migrating AdministrationService database...
[16:27:34 INF] Migrating IdentityService database...
[16:27:35 INF] Migrating ProductService database...
Unhandled exception. Autofac.Core.DependencyResolutionException: An exception was thrown while activating Volo.Abp.Auditing.AuditingManager -> Volo.Abp.Auditing.AuditingHelper -> Volo.Abp.AuditLogging.AuditingStore -> Volo.Abp.AuditLogging.AuditLogInfoToAuditLogConverter -> Volo.Abp.AspNetCore.ExceptionHandling.DefaultExceptionToErrorInfoConverter -> Volo.Abp.Localization.AbpStringLocalizerFactory -> Volo.Abp.LanguageManagement.External.ExternalLocalizationStore.
---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Microsoft.Extensions.Options.IOptions1[Volo.Abp.Localization.AbpLocalizationOptions], Volo.Abp.LanguageManagement.External.ILocalizationResourceRecordRepository, Volo.Abp.LanguageManagement.External.IExternalLocalizationStoreCache)' on type 'ExternalLocalizationStore'. ---> System.MissingMethodException: Method not found: 'Volo.Abp.Localization.LocalizationResource Volo.Abp.Localization.LocalizationResourceExtensions.AddBaseTypes(Volo.Abp.Localization.LocalizationResource, System.Type[])'. at SchoolAut0mater.ProductService.ProductServiceDomainSharedModule.<>c.<ConfigureServices>b__1_1(AbpLocalizationOptions options) at Microsoft.Extensions.Options.ConfigureNamedOptions
1.Configure(String name, TOptions options)
at Microsoft.Extensions.Options.OptionsFactory1.Create(String name) at Microsoft.Extensions.Options.UnnamedOptionsManager
1.get_Value()
at Volo.Abp.LanguageManagement.External.ExternalLocalizationStore..ctor(IOptions1 localizationOptions, ILocalizationResourceRecordRepository localizationResourceRecordRepository, IExternalLocalizationStoreCache cache) at lambda_method55(Closure, Object[]) at Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate() --- End of inner exception stack trace --- at Autofac.Core.Activators.Reflection.BoundConstructor.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.<>c__DisplayClass12_0.<UseSingleConstructorActivation>b__0(ResolveRequestContext ctxt, Action
1 next)
at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action
1 next)
at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt)
at Autofac.Builder.RegistrationBuilder3.<>c__DisplayClass41_0.<PropertiesAutowired>b__0(ResolveRequestContext ctxt, Action
1 next)
at Autofac.Core.Resolving.Middleware.DelegateMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action
1 next)
--- End of inner exception stack trace ---
at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action
1 next)
at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt)
at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action
1 next)
at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt)
at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt)
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request)
at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request)
at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request)
at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request)
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object& instance) at Autofac.ResolutionExtensions.ResolveOptionalService(IComponentContext context, Service service, IEnumerable
1 parameters)
at Autofac.ResolutionExtensions.ResolveOptional(IComponentContext context, Type serviceType, IEnumerable1 parameters) at Autofac.ResolutionExtensions.ResolveOptional(IComponentContext context, Type serviceType) at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetService(Type serviceType) at Volo.Abp.DependencyInjection.CachedServiceProviderBase.<>c__DisplayClass7_0.<GetService>b__1() at System.Lazy
1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy
1.CreateValue()
at Volo.Abp.DependencyInjection.CachedServiceProviderBase.GetService(Type serviceType)
at Volo.Abp.DependencyInjection.AbpLazyServiceProvider.LazyGetRequiredService(Type serviceType)
at Volo.Abp.DependencyInjection.AbpLazyServiceProvider.LazyGetRequiredServiceT
at Volo.Abp.EntityFrameworkCore.AbpDbContext1.get_AuditingManager() at Volo.Abp.EntityFrameworkCore.AbpDbContext
1.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
at Volo.Abp.Uow.UnitOfWork.SaveChangesAsync(CancellationToken cancellationToken)
at Volo.Abp.Uow.UnitOfWork.CompleteAsync(CancellationToken cancellationToken)
at SchoolAut0mater.DbMigrator.SchoolAut0materDbMigrationService.MigrateAllDatabasesAsync(Nullable`1 tenantId, CancellationToken cancellationToken)
in D:\Projects\abpio\SchoolAut0materV4\SchoolAut0mater\shared\SchoolAut0mater.DbMigrator\SchoolAut0materDbMigrationService.cs:line 103
at SchoolAut0mater.DbMigrator.SchoolAut0materDbMigrationService.MigrateHostAsync(CancellationToken cancellationToken) in D:\Projects\abpio\SchoolAut0materV4\SchoolAut0mater\shared\SchoolAut0mater.DbMigrator\SchoolAut0materDbMigrationService.cs:line 55
at SchoolAut0mater.DbMigrator.SchoolAut0materDbMigrationService.MigrateAsync(CancellationToken cancellationToken) in D:\Projects\abpio\SchoolAut0materV4\SchoolAut0mater\shared\SchoolAut0mater.DbMigrator\SchoolAut0materDbMigrationService.cs:line 47
at SchoolAut0mater.DbMigrator.DbMigratorHostedService.StartAsync(CancellationToken cancellationToken) in D:\Projects\abpio\SchoolAut0materV4\SchoolAut0mater\shared\SchoolAut0mater.DbMigrator\DbMigratorHostedService.cs:line 37
at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at SchoolAut0mater.DbMigrator.Program.Main(String[] args) in D:\Projects\abpio\SchoolAut0materV4\SchoolAut0mater\shared\SchoolAut0mater.DbMigrator\Program.cs:line 36
at SchoolAut0mater.DbMigrator.Program.
I have added the below properties to tenant in the SaasServiceEfCoreEntityExtensionMappings class. I shall be adding additional fields similarly to User Entity as well. How to add these additional fields to the angular tenant and user creation form as well
ObjectExtensionManager.Instance
.MapEfCoreProperty<Tenant, string>(
"Currency",
(entityBuilder, propertyBuilder) =>
{
propertyBuilder.IsRequired(false);
propertyBuilder.HasMaxLength(3);
}
);
ObjectExtensionManager.Instance
.MapEfCoreProperty<Tenant, int?>(
"CurrencyDecimal",
(entityBuilder, propertyBuilder) =>
{
propertyBuilder.IsRequired(false);
}
);
ObjectExtensionManager.Instance
.MapEfCoreProperty<Tenant, DateTime>(
"AcademicYearStart",
(entityBuilder, propertyBuilder) =>
{
propertyBuilder.HasMaxLength(3);
}
);
I have created a microservice solution with Angular UI. It has the sample product service and I have added an additional core service for the application. After some changes to controller for the new entity when I try to regenerate the proxy I recieve the above error. If there is only one service it generates without any issues. But for multiple services it throws the error.
I am trying to generate an entity within a module using the abp suite. It generates the backend files but does not generate any angular pages for the entity.