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);
                        }
                    );
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.