Starts in:
0 DAY
4 HRS
39 MIN
59 SEC
Starts in:
0 D
4 H
39 M
59 S

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.

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

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

Showing 1 to 6 of 6 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06