|
|
|
@ -0,0 +1,35 @@
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using Volo.Abp.Identity;
|
|
|
|
|
using Volo.Abp.ObjectExtending;
|
|
|
|
|
using Volo.Abp.Threading;
|
|
|
|
|
|
|
|
|
|
namespace MyCompanyName.MyProjectName
|
|
|
|
|
{
|
|
|
|
|
public static class MyProjectNameModulePropertyConfigurator
|
|
|
|
|
{
|
|
|
|
|
private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner();
|
|
|
|
|
|
|
|
|
|
public static void Configure()
|
|
|
|
|
{
|
|
|
|
|
OneTimeRunner.Run(() =>
|
|
|
|
|
{
|
|
|
|
|
ConfigureExistingProperties();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static void ConfigureExistingProperties()
|
|
|
|
|
{
|
|
|
|
|
/* 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
|
|
|
|
|
|
|
|
|
|
IdentityUserConsts.MaxNameLength = 99;
|
|
|
|
|
IdentityRoleConsts.MaxNameLength = 99;
|
|
|
|
|
|
|
|
|
|
* Notice: It is not suggested to change property lengths
|
|
|
|
|
* unless you really need it. Go with the standard values wherever possible.
|
|
|
|
|
*/
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|