dengjunjie
2024-11-14 c827fe7b0c5b3b444d76ba0d96a2649c764630dd
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Filter/AutoMapperSetup.cs
对比新文件
@@ -0,0 +1,16 @@
锘縩amespace WIDESEA_WMSServer.Filter
{
    /// <summary>
    /// Automapper 鍚姩鏈嶅姟
    /// </summary>
    public static class AutoMapperSetup
    {
        public static void AddAutoMapperSetup(this IServiceCollection services)
        {
            if (services == null) throw new ArgumentNullException(nameof(services));
            services.AddAutoMapper(typeof(AutoMapperConfig));
            AutoMapperConfig.RegisterMappings();
        }
    }
}