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)
-
0
hi
https://community.abp.io/posts/how-to-add-custom-property-to-the-user-entity-6ggxiddr