招聘后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
575 B

using AutoMapper;
using Microsoft.Extensions.DependencyInjection;
using System;
using Znyc.Recruitment.Admin.Commons.Mapping;
namespace Znyc.Recruitment.Admin.Commons.Module
{
/// <summary>
/// AutoMapperService
/// </summary>
public class AutoMapperService
{
/// <summary>
/// </summary>
/// <param name="provider"></param>
public static void UsePack(IServiceProvider provider)
{
IMapper mapper = provider.GetService<IMapper>();
MapperExtensions.SetMapper(mapper);
}
}
}