You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
984 B
33 lines
984 B
1 year ago
|
using Volo.Abp.Threading;
|
||
|
|
||
|
namespace BaseService
|
||
|
{
|
||
|
public class BaseServiceModuleExtensionConfigurator
|
||
|
{
|
||
|
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.
|
||
|
*/
|
||
|
}
|
||
|
}
|
||
|
}
|