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.

18 lines
532 B
C#

11 months ago
using Microsoft.Extensions.DependencyInjection;
using NPin.Framework.Core;
using Volo.Abp.ObjectMapping;
namespace NPin.Framework.Mapster;
[DependsOn(
typeof(NPinFrameworkCoreModule),
typeof(AbpObjectMappingModule)
)]
11 months ago
public class NPinFrameworkMapsterModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
// 注入 MapsterAutoObjectMappingProvider
context.Services.AddTransient<IAutoObjectMappingProvider, MapsterAutoObjectMappingProvider>();
}
}