Activities of "lstsair"

Noted. Actually my intention is country is standard to all tenant so they can share the same information in country table.

{ "Id": "8beaeebb-6213-4eab-9c88-11783675893c", "Name": "Address", "OriginalName": "Address", "NamePlural": "Addresses", "DatabaseTableName": "Addresses", "Namespace": "Addresses", "BaseClass": "FullAuditedAggregateRoot", "PrimaryKeyType": "Guid", "IsMultiTenant": true, "ShouldCreateUserInterface": true, "ShouldCreateBackend": true, "ShouldAddMigration": true, "ShouldUpdateDatabase": true, "CreateTests": false, "Properties": [ { "Id": "7fff85a7-0741-4d21-af5b-574d319c6ecd", "Name": "Add1", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 80, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "f91edab3-10dc-4b28-97f1-be82822b718f", "Name": "Add2", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 80, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "91c251cc-819f-4ba5-b3f9-7a933f089577", "Name": "Add3", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 80, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "e0a69e31-a301-40db-9034-dd0b80e98153", "Name": "Postcode", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 25, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "36c2000a-5c5e-4023-909f-c8f1dab14943", "Name": "Tel_No", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 30, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "4c2396b8-d1c9-47d7-a112-f757b18649a5", "Name": "Mobile_No", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 30, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "09d7ca29-6e9a-4e90-9105-fca9c874d5b5", "Name": "Fax_No", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 30, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "396c179e-998c-4b2b-a22e-3fff4c4f33d5", "Name": "Email", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 80, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "c7e108c0-5055-4b80-9a46-eeaef5cecab5", "Name": "Website", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 150, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "1eeaf6d7-4d0e-4546-9cf0-89281f2d235e", "Name": "Closured", "Type": "bool", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "370b7262-f18a-4539-89f4-97aa9f0aac4c", "Name": "IsPriority", "Type": "bool", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "3d9851e6-7418-46ec-8049-6af93c2f449a", "Name": "Date_Effective", "Type": "DateTime", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "6bbf9cc4-5548-4a61-80cb-e9f1dddc75d4", "Name": "Date_Cease", "Type": "DateTime", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "38f74407-60ea-4e2e-b8f8-6d0865038b3f", "Name": "Desc1", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 240, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "bf9d2d07-a595-480a-972e-5a9266729191", "Name": "Desc2", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 240, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "4b9634d8-76f6-41f3-bd45-e38b6b01864c", "Name": "SameAs", "Type": "enum", "EnumType": "AddressSameAsType", "EnumNamespace": "SecCloud.TypeList", "EnumAngularImport": "shared/enums/address-same-as-type", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": { "None": null, "Register_Office_Address": null, "Business_Office_Address": null, "Other_Address": null, "System_Register_Address": null } }, { "Id": "8d8fbb41-a560-48f0-9419-1a251bb88b7b", "Name": "Address_Type", "Type": "enum", "EnumType": "AddressType", "EnumNamespace": "SecCloud.TypeList", "EnumAngularImport": "shared/enums/address-type", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": { "None": null, "Register_Office_Address": null, "Register_Index_Book_Kept_Address": null, "Business_Office_Address": null, "Financial_Records_Kept_Address": null, "Branch_Office_Address": null, "Register_Office_Outside_Malaysia_Address": null, "Meeting_Place_Address": null, "Correspondence_Address": null, "Billing_Address": null, "Residential_Address": null, "Services_Address": null } }, { "Id": "919e7275-a415-479e-8dda-f26bc5ebbc02", "Name": "Name", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 80, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null } ], "NavigationProperties": [ { "Namespace": "SecCloud.Towns", "EntityName": "Town", "EntityNameWithDuplicationNumber": "Town", "EntitySetNameWithDuplicationNumber": "Towns", "EntitySetName": "Towns", "DtoNamespace": "SecCloud.Towns", "DtoEntityName": "TownDto", "Type": "long", "Name": "TownId", "ReferencePropertyName": "Town", "DisplayProperty": "Name", "UiPickType": "Typeahead", "IsRequired": false }, { "Namespace": "SecCloud.States", "EntityName": "State", "EntityNameWithDuplicationNumber": "State", "EntitySetNameWithDuplicationNumber": "States", "EntitySetName": "States", "DtoNamespace": "SecCloud.States", "DtoEntityName": "StateDto", "Type": "int", "Name": "StateId", "ReferencePropertyName": "State", "DisplayProperty": "Name", "UiPickType": "Dropdown", "IsRequired": false }, { "Namespace": "SecCloud.Countries", "EntityName": "Country", "EntityNameWithDuplicationNumber": "Country", "EntitySetNameWithDuplicationNumber": "Countries", "EntitySetName": "Countries", "DtoNamespace": "SecCloud.Countries", "DtoEntityName": "CountryDto", "Type": "int", "Name": "CountryId", "ReferencePropertyName": "Country", "DisplayProperty": "Name", "UiPickType": "Typeahead", "IsRequired": false }, { "Namespace": "SecCloud.Addresses", "EntityName": "Address", "EntityNameWithDuplicationNumber": "Address1", "EntitySetNameWithDuplicationNumber": "Addresses1", "EntitySetName": "Addresses", "DtoNamespace": "SecCloud.Addresses", "DtoEntityName": "AddressDto", "Type": "Guid", "Name": "AddressId", "ReferencePropertyName": "Address", "DisplayProperty": "Add1", "UiPickType": "Modal", "IsRequired": false }, { "Namespace": "SecCloud.EventClss", "EntityName": "EventCls", "EntityNameWithDuplicationNumber": "EventCls", "EntitySetNameWithDuplicationNumber": "EventClss", "EntitySetName": "EventClss", "DtoNamespace": "SecCloud.EventClss", "DtoEntityName": "EventClsDto", "Type": "Guid", "Name": "EventClsId", "ReferencePropertyName": "EventCls", "DisplayProperty": "Name", "UiPickType": "Modal", "IsRequired": false } ], "PhysicalFileName": "Address.json" }

{ "Id": "9e4a117e-ca42-43cb-955c-85b5dab1624e", "Name": "Country", "OriginalName": "Country", "NamePlural": "Countries", "DatabaseTableName": "Countries", "Namespace": "Countries", "BaseClass": "FullAuditedAggregateRoot", "PrimaryKeyType": "int", "IsMultiTenant": false, "ShouldCreateUserInterface": true, "ShouldCreateBackend": true, "ShouldAddMigration": true, "ShouldUpdateDatabase": true, "CreateTests": false, "Properties": [ { "Id": "564b56a2-6e13-4394-960b-04942f9803f9", "Name": "Code", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 10, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "18266ef5-07cf-4655-ba22-b85d1465da48", "Name": "Name", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 100, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null } ], "NavigationProperties": [], "PhysicalFileName": "Country.json" }

{ "Id": "26e16e4f-c475-44df-b6cf-ae165d4e6d83", "Name": "State", "OriginalName": "State", "NamePlural": "States", "DatabaseTableName": "States", "Namespace": "States", "BaseClass": "FullAuditedAggregateRoot", "PrimaryKeyType": "int", "IsMultiTenant": false, "ShouldCreateUserInterface": true, "ShouldCreateBackend": true, "ShouldAddMigration": true, "ShouldUpdateDatabase": true, "CreateTests": false, "Properties": [ { "Id": "002af1d5-06e0-4fc8-98e3-40ff3e6feaea", "Name": "Code", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 5, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "977600c2-ddd5-40d0-b54c-4a8065e2f837", "Name": "Name", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 50, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null } ], "NavigationProperties": [], "PhysicalFileName": "State.json" }

{ "Id": "256a33ff-ec0e-4977-9587-0dd1e9d011ac", "Name": "Town", "OriginalName": "Town", "NamePlural": "Towns", "DatabaseTableName": "Towns", "Namespace": "Towns", "BaseClass": "FullAuditedAggregateRoot", "PrimaryKeyType": "long", "IsMultiTenant": false, "ShouldCreateUserInterface": true, "ShouldCreateBackend": true, "ShouldAddMigration": true, "ShouldUpdateDatabase": true, "CreateTests": false, "Properties": [ { "Id": "741db341-4164-4c50-aaba-c7d0088a41ac", "Name": "Name", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 80, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null } ], "NavigationProperties": [ { "Namespace": "SecCloud.States", "EntityName": "State", "EntityNameWithDuplicationNumber": "State", "EntitySetNameWithDuplicationNumber": "States", "EntitySetName": "States", "DtoNamespace": "SecCloud.States", "DtoEntityName": "StateDto", "Type": "int", "Name": "StateId", "ReferencePropertyName": "State", "DisplayProperty": "Name", "UiPickType": "Dropdown", "IsRequired": false }, { "Namespace": "SecCloud.Countries", "EntityName": "Country", "EntityNameWithDuplicationNumber": "Country", "EntitySetNameWithDuplicationNumber": "Countries", "EntitySetName": "Countries", "DtoNamespace": "SecCloud.Countries", "DtoEntityName": "CountryDto", "Type": "int", "Name": "CountryId", "ReferencePropertyName": "Country", "DisplayProperty": "Name", "UiPickType": "Dropdown", "IsRequired": false } ], "PhysicalFileName": "Town.json" }

{ "Id": "f3fbc634-1c69-48a7-b065-3e1057493809", "Name": "EventCls", "OriginalName": "EventCls", "NamePlural": "EventClss", "DatabaseTableName": "EventClss", "Namespace": "EventClss", "BaseClass": "FullAuditedAggregateRoot", "PrimaryKeyType": "Guid", "IsMultiTenant": true, "ShouldCreateUserInterface": true, "ShouldCreateBackend": true, "ShouldAddMigration": true, "ShouldUpdateDatabase": true, "CreateTests": false, "Properties": [ { "Id": "935b7288-db72-477f-afba-69699eb16c56", "Name": "Code", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 30, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "edfaef5c-fde3-4ec1-8468-8bf05c92dd94", "Name": "Name", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 55, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "c4d078d7-7d25-48b3-bf45-2660463b3e48", "Name": "ResoContent", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "e1af0f1b-5efd-4c9e-b5fd-6e33a7ef1e9f", "Name": "IsEgmLink", "Type": "bool", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "809e4381-171b-4a8e-931a-a3413039b38a", "Name": "EventMethod1", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 50, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "c6dd6d8e-e4a4-42f4-9d47-d3b59c35793c", "Name": "EventMethod2", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 50, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "d0d40dbc-4e80-48d1-9921-4088c44f0727", "Name": "PostEventMethod", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 100, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "e2a84c1d-c2e3-4990-b899-74057aaa7620", "Name": "DeleteEventMethod", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": 100, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "d19e0976-fbd5-4b5c-8fd2-93e90efbb6de", "Name": "IsPublicEvent", "Type": "bool", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "3eb892cd-cafb-4a8b-a657-e463dcaa119d", "Name": "IsDeleteAllow", "Type": "bool", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null } ], "NavigationProperties": [], "PhysicalFileName": "EventCls.json" }

Answer

actualy the message is .Select(i=> new LookupDto<Guid> { Id = i.Id.Value, DisplayName = i.DisplayName} ).ToList(), that is no i.id.Value property("Value") this only happen when I tick Require in Navigation Properties.

  • ABP Framework version: v4.3.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:When add in Navigation Properties ABP Suite, the code will generate the error as below. Has been spen a day stil not able to solve. please help.
  • Steps to reproduce the issue:

[18:00:10 ERR] Build started... Build succeeded. System.InvalidOperationException: The property 'Country.ExtraProperties' could not be mapped because it is of type 'ExtraPropertyDictionary', which is not a supported primitive type or a valid entity type. Either explicitly map this property, or ignore it using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidatePropertyMapping(IModel model, IDiagnosticsLogger1 logger) at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger1 logger) at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger1 logger) at Microsoft.EntityFrameworkCore.SqlServer.Internal.SqlServerModelValidator.Validate(IModel model, IDiagnosticsLogger1 logger) at Microsoft.EntityFrameworkCore.Metadata.Conventions.ValidatingConvention.ProcessModelFinalized(IModel model) at Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ConventionDispatcher.ImmediateConventionScope.OnModelFinalized(IModel model) at Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ConventionDispatcher.OnModelFinalized(IModel model) at Microsoft.EntityFrameworkCore.Metadata.Internal.Model.FinalizeModel() at Microsoft.EntityFrameworkCore.ModelBuilder.FinalizeModel() at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.CreateModel(DbContext context, IConventionSetBuilder conventionSetBuilder, ModelDependencies modelDependencies) at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, IConventionSetBuilder conventionSetBuilder, ModelDependencies modelDependencies) at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel() at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model() at Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkServicesBuilder.<>c.<TryAddCoreServices>b__7_3(IServiceProvider p) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.<RealizeService>b__0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies() at Microsoft.EntityFrameworkCore.DbContext.get_InternalServiceProvider() at Microsoft.EntityFrameworkCore.DbContext.Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<System.IServiceProvider>.get_Instance() at Microsoft.EntityFrameworkCore.Infrastructure.Internal.InfrastructureExtensions.GetService[TService](IInfrastructure1 accessor) at Microsoft.EntityFrameworkCore.Infrastructure.AccessorExtensions.GetService[TService](IInfrastructure1 accessor) at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(Func1 factory) at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(String contextType) at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.AddMigration(String name, String outputDir, String contextType, String namespace) at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImpl(String name, String outputDir, String contextType, String namespace) at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigration.<>c__DisplayClass0_0.<.ctor>b__0() at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_01.<Execute>b__0() at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action) The property 'Country.ExtraProperties' could not be mapped because it is of type 'ExtraPropertyDictionary', which is not a supported primitive type or a valid entity type. Either explicitly map this property, or ignore it using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.

  • ABP Framework version: v4.3.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:

I create a New Tenant for the application and Register a New user with the tenant, after login that is No Grant Permission. Just show Home only. How to access the Grant Permission for this first New user in order to assign permission for other user.

Question
  • ABP Framework version: v4.3.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:

In ABP Suite, I set the UI Pick type as Typeahead, and tick Required. Then generate the code. The message prompt Error.

Then I build the Solution, the error show as below :

Severity	Code	Description	Project	File	Line	Suppression State
Error	CS1061	'Guid' does not contain a definition for 'Value' and no accessible extension method 'Value' accepting a first argument of type 'Guid' could be found (are you missing a using directive or an assembly reference?)	SecCloud.Blazor	C:\Appl\MyProjects\SecCloud\aspnet-core\src\SecCloud.Blazor\Pages\RegDirs.razor.cs	173	Active

The code generated by ABP SUITE as below :

       private async Task GetClientLookupAsync(string text = null)
        {
            Clients = (await RegDirsAppService.GetClientLookupAsync(new LookupRequestDto { Filter = text })).Items
            .Select(i=> new LookupDto<Guid> { Id = i.Id.Value, DisplayName = i.DisplayName} ).ToList();
        }

How to solved this issue?

I fixed this by add newValue = null into the code as below:

   private async Task GetNullableStateLookupAsync(string newValue = null )
    {
        StatesNullable = (await TownsAppService.GetStateLookupAsync(new LookupRequestDto { Filter = newValue })).Items;
    }


    private async Task GetNullableCountryLookupAsync(string newValue = null )
    {
        CountriesNullable = (await TownsAppService.GetCountryLookupAsync(new LookupRequestDto { Filter = newValue })).Items;
    }
    

And then manually do add migration as below: Add-Migration "20210512111200_Added_Town" -Context MigrationsDbContext

This may help the topic : problem with navigation properties in abp suite #1289

  • ABP Framework version: v4.3.0

  • UI type: Blazor

  • DB provider: EF Core / MSSQL

  • Tiered (MVC) or Identity Server Separated (Angular): no

  • Exception message and stack trace:

  • Steps to reproduce the issue: abp suite generate the code error with no argument

  • code below is generated by abp suite protected override async Task OnInitializedAsync() { await SetToolbarItemsAsync(); await SetBreadcrumbItemsAsync(); await SetPermissionsAsync(); await GetNullableStateLookupAsync();
    await GetNullableCountryLookupAsync(); }

      Severity	Code	Description	Project	File	Line	Suppression State
    

Error CS7036 There is no argument given that corresponds to the required formal parameter 'newValue' of 'Towns.GetNullableCountryLookupAsync(string)' SecCloud.Blazor C:\Appl\MyProjects\SecCloud\aspnet-core\src\SecCloud.Blazor\Pages\Towns.razor.cs 59 Active

    Severity	Code	Description	Project	File	Line	Suppression State

Error CS7036 There is no argument given that corresponds to the required formal parameter 'newValue' of 'Towns.GetNullableStateLookupAsync(string)' SecCloud.Blazor C:\Appl\MyProjects\SecCloud\aspnet-core\src\SecCloud.Blazor\Pages\Towns.razor.cs 58 Active

I still not able to fix the problem, how to unblock the browser

Showing 1 to 10 of 11 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07