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.

21 lines
560 B
C#

2 years ago
using AutoMapper;
using DS.Module.Core.Extensions;
using DS.Module.Core.Modules;
using Microsoft.Extensions.DependencyInjection;
namespace DS.Module.AutoMapper;
/// <summary>
/// AutoMapper模块
/// </summary>
public class AutoMapperModule : DSAppModule
{
public override void ConfigureServices(ConfigureServicesContext context)
{
var service = context.Services;
// service.AddAutoMapper();
// var mapper = service.GetService<IMapper>(); //获取autoMapper实例
// AutoMapperExtension.SetMapper(mapper);
}
}