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