项目代码/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(); } } }