wanshenmean
4 天以前 ce1292c9cf37195b6abd2699dfc5d6cb3e143c9b
Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Filter/AutoMapperConfig.cs
@@ -1,18 +1,15 @@
using AutoMapper;
using Mapster;
namespace WIDESEAWCS_WCSServer.Filter
{
    /// <summary>
    /// 静态全局 AutoMapper 配置文件
    /// 静态全局 Mapster 配置文件
    /// </summary>
    public class AutoMapperConfig
    public class MapsterConfig
    {
        public static MapperConfiguration RegisterMappings()
        public static void RegisterMappings(TypeAdapterConfig config)
        {
            return new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new CustomProfile());
            });
            CustomProfile.Register(config);
        }
    }
}