mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-03 00:00:58 +08:00
21 lines
622 B
C#
21 lines
622 B
C#
|
|
using MapsterMapper;
|
|||
|
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
|
using Microsoft.Extensions.DependencyInjection.Extensions;
|
|||
|
|
using Volo.Abp.Modularity;
|
|||
|
|
using Volo.Abp.ObjectMapping;
|
|||
|
|
using Yi.Framework.Core;
|
|||
|
|
|
|||
|
|
namespace Yi.Framework.Mapster
|
|||
|
|
{
|
|||
|
|
[DependsOn(typeof(YiFrameworkCoreModule),
|
|||
|
|
|
|||
|
|
typeof(AbpObjectMappingModule)
|
|||
|
|
)]
|
|||
|
|
public class YiFrameworkMapsterModule : AbpModule
|
|||
|
|
{
|
|||
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|||
|
|
{
|
|||
|
|
context.Services.AddTransient<IAutoObjectMappingProvider, MapsterAutoObjectMappingProvider>();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|