mirror of https://github.com/abpframework/abp.git
5 changed files with 45 additions and 21 deletions
@ -0,0 +1,13 @@ |
|||
using AutoMapper; |
|||
|
|||
namespace Volo.Abp.Identity.Blazor |
|||
{ |
|||
public class AbpIdentityBlazorAutoMapperProfile : Profile |
|||
{ |
|||
public AbpIdentityBlazorAutoMapperProfile() |
|||
{ |
|||
CreateMap<IdentityRoleDto, IdentityRoleUpdateDto>() |
|||
.MapExtraProperties(); |
|||
} |
|||
} |
|||
} |
|||
@ -1,13 +1,25 @@ |
|||
using Volo.Abp.Modularity; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp.AutoMapper; |
|||
using Volo.Abp.Modularity; |
|||
using Volo.Abp.BlazoriseUI; |
|||
|
|||
namespace Volo.Abp.Identity.Blazor |
|||
{ |
|||
[DependsOn( |
|||
typeof(AbpIdentityHttpApiClientModule), |
|||
typeof(AbpBlazoriseUIModule) |
|||
typeof(AbpBlazoriseUIModule), |
|||
typeof(AbpAutoMapperModule) |
|||
)] |
|||
public class AbpIdentityBlazorModule : AbpModule |
|||
{ |
|||
public override void ConfigureServices(ServiceConfigurationContext context) |
|||
{ |
|||
context.Services.AddAutoMapperObjectMapper<AbpIdentityBlazorModule>(); |
|||
|
|||
Configure<AbpAutoMapperOptions>(options => |
|||
{ |
|||
options.AddProfile<AbpIdentityBlazorAutoMapperProfile>(validate: true); |
|||
}); |
|||
} |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue