Open Closed

Updating Angular UI for custom tenant and user fields in microservice solution #3460


User avatar
0
afatima@asb.bh created
  • ABP Framework version: v5.3.3
  • UI type: Angular
  • DB provider: EF Core

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);
                        }
                    );

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://community.abp.io/posts/how-to-add-custom-property-to-the-user-entity-6ggxiddr

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15