BaseServiceModuleExtensionConfigurator.cs 984 B

1234567891011121314151617181920212223242526272829303132
  1. using Volo.Abp.Threading;
  2. namespace BaseService
  3. {
  4. public class BaseServiceModuleExtensionConfigurator
  5. {
  6. private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner();
  7. public static void Configure()
  8. {
  9. OneTimeRunner.Run(() =>
  10. {
  11. ConfigureExistingProperties();
  12. });
  13. }
  14. private static void ConfigureExistingProperties()
  15. {
  16. /* You can change max lengths for properties of the
  17. * entities defined in the modules used by your application.
  18. *
  19. * Example: Change user and role name max lengths
  20. IdentityUserConsts.MaxNameLength = 99;
  21. IdentityRoleConsts.MaxNameLength = 99;
  22. * Notice: It is not suggested to change property lengths
  23. * unless you really need it. Go with the standard values wherever possible.
  24. */
  25. }
  26. }
  27. }