Open Closed

Change length of field in SaaS module. #7598


User avatar
0
tuk created
  • ABP Framework version: v8.2.0
  • UI Type: Blazor Server
  • Database System: EF Core (MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hello To support a Legacy system we need to change length of Name and NormalizedName in SaaS module. Table "SaasTenants".

According to documentation it says: /* You can change max lengths for properties of the

  • entities defined in the modules used by your application.
  • Example: Change user and role name max lengths AbpUserConsts.MaxNameLength = 99; IdentityRoleConsts.MaxNameLength = 99;*/

I have identified following in SaaS module: Volo.Saas.TenantConsts.MaxNameLength

However this is a constant and cannot be changed.

What would be the correct (best) implementation to change the length of a field in SaaS module so it will reflect all the way up to UI?


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

    Hi,

    Sorry, you can't do it, for now, because it's a const property.

    This is a mistake, I will change it to static next patch version

Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13