mirror of https://github.com/abpframework/abp.git
5 changed files with 44 additions and 6 deletions
@ -1,9 +1,26 @@ |
|||||
using Volo.Abp.ObjectExtending.Modularity; |
using System; |
||||
|
using Volo.Abp.ObjectExtending.Modularity; |
||||
|
|
||||
namespace Volo.Abp.ObjectExtending |
namespace Volo.Abp.ObjectExtending |
||||
{ |
{ |
||||
public class IdentityModuleExtensionConfiguration : ModuleExtensionConfiguration |
public class IdentityModuleExtensionConfiguration : ModuleExtensionConfiguration |
||||
{ |
{ |
||||
|
public IdentityModuleExtensionConfiguration ConfigureUser( |
||||
|
Action<EntityExtensionConfiguration> configureAction) |
||||
|
{ |
||||
|
return this.ConfigureEntity( |
||||
|
IdentityModuleExtensionConsts.EntityNames.User, |
||||
|
configureAction |
||||
|
); |
||||
|
} |
||||
|
|
||||
|
public IdentityModuleExtensionConfiguration ConfigureRole( |
||||
|
Action<EntityExtensionConfiguration> configureAction) |
||||
|
{ |
||||
|
return this.ConfigureEntity( |
||||
|
IdentityModuleExtensionConsts.EntityNames.Role, |
||||
|
configureAction |
||||
|
); |
||||
|
} |
||||
} |
} |
||||
} |
} |
||||
@ -0,0 +1,14 @@ |
|||||
|
namespace Volo.Abp.ObjectExtending |
||||
|
{ |
||||
|
public static class IdentityModuleExtensionConsts |
||||
|
{ |
||||
|
public const string ModuleName = "Identity"; |
||||
|
|
||||
|
public static class EntityNames |
||||
|
{ |
||||
|
public const string User = "User"; |
||||
|
|
||||
|
public const string Role = "Role"; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue