mirror of https://github.com/abpframework/abp.git
12 changed files with 83 additions and 41 deletions
@ -1,14 +1,23 @@ |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp.AutoMapper; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace AbpDesk |
|||
{ |
|||
[DependsOn(typeof(AbpDeskDomainModule))] |
|||
[DependsOn(typeof(AbpDeskDomainModule), typeof(AbpAutoMapperModule))] |
|||
public class AbpDeskApplicationModule : AbpModule |
|||
{ |
|||
public override void ConfigureServices(IServiceCollection services) |
|||
{ |
|||
services.AddAssemblyOf<AbpDeskApplicationModule>(); |
|||
|
|||
services.Configure<AbpAutoMapperOptions>(options => |
|||
{ |
|||
options.Configurators.Add(context => |
|||
{ |
|||
context.MapperConfiguration.AddProfile<AbpDeskApplicationModuleAutoMapperProfile>(); |
|||
}); |
|||
}); |
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,14 @@ |
|||
using AbpDesk.Tickets; |
|||
using AbpDesk.Tickets.Dtos; |
|||
using AutoMapper; |
|||
|
|||
namespace AbpDesk |
|||
{ |
|||
public class AbpDeskApplicationModuleAutoMapperProfile : Profile |
|||
{ |
|||
public AbpDeskApplicationModuleAutoMapperProfile() |
|||
{ |
|||
CreateMap<Ticket, TicketDto>(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,12 @@ |
|||
using AutoMapper; |
|||
|
|||
namespace Volo.Abp.Identity |
|||
{ |
|||
public class AbpIdentityApplicationModuleAutoMapperProfile : Profile |
|||
{ |
|||
public AbpIdentityApplicationModuleAutoMapperProfile() |
|||
{ |
|||
CreateMap<IdentityUser, IdentityUserDto>(); |
|||
} |
|||
} |
|||
} |
|||
@ -1,14 +1,23 @@ |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp.AutoMapper; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace Volo.Abp.Identity |
|||
{ |
|||
[DependsOn(typeof(AbpIdentityModule), typeof(AbpIdentityApplicationContractsModule))] |
|||
[DependsOn(typeof(AbpIdentityModule), typeof(AbpIdentityApplicationContractsModule), typeof(AbpAutoMapperModule))] |
|||
public class AbpIdentityApplicationModule : AbpModule |
|||
{ |
|||
public override void ConfigureServices(IServiceCollection services) |
|||
{ |
|||
services.AddAssemblyOf<AbpIdentityApplicationModule>(); |
|||
|
|||
services.Configure<AbpAutoMapperOptions>(options => |
|||
{ |
|||
options.Configurators.Add(context => |
|||
{ |
|||
context.MapperConfiguration.AddProfile<AbpIdentityApplicationModuleAutoMapperProfile>(); |
|||
}); |
|||
}); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,9 @@ |
|||
using Volo.Abp.ObjectMapping; |
|||
|
|||
namespace Volo.Abp.Application.Services |
|||
{ |
|||
public abstract class ApplicationService : IApplicationService |
|||
{ |
|||
public IObjectMapper ObjectMapper { get; set; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue