mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-03 00:00:58 +08:00
21 lines
538 B
C#
21 lines
538 B
C#
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using System;
|
|
using System.IO;
|
|
using Yi.Framework.WebCore.Mapper;
|
|
|
|
namespace Yi.Framework.WebCore.MiddlewareExtend
|
|
{
|
|
/// <summary>
|
|
/// 通用autoMapper扩展
|
|
/// </summary>
|
|
public static class AutoMapperExtension
|
|
{
|
|
public static IServiceCollection AddAutoMapperService(this IServiceCollection services)
|
|
{
|
|
services.AddAutoMapper(typeof(AutoMapperProfile));
|
|
return services;
|
|
}
|
|
}
|
|
}
|