You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
using NPin.Framework.Core;
|
|
|
|
|
using Volo.Abp.Modularity;
|
|
|
|
|
using Volo.Abp.ObjectMapping;
|
|
|
|
|
|
|
|
|
|
namespace NPin.Framework.Mapster;
|
|
|
|
|
|
|
|
|
|
[DependsOn(typeof(NPinFrameworkCoreModule), typeof(AbpObjectMappingModule))]
|
|
|
|
|
public class NPinFrameworkMapsterModule : AbpModule
|
|
|
|
|
{
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
|
|
|
{
|
|
|
|
|
// 注入 MapsterAutoObjectMappingProvider
|
|
|
|
|
context.Services.AddTransient<IAutoObjectMappingProvider, MapsterAutoObjectMappingProvider>();
|
|
|
|
|
}
|
|
|
|
|
}
|