automapper 非依赖注入方式工具类
public class MappingProfile
{
private static MapperConfiguration _config = new MapperConfiguration(cfg =>
{
cfg.CreateMap<PredictionParams, PredictionParamsStruct>();
cfg.CreateMap<PredictionParamsStruct, PredictionParams>();
});
public static IMapper Mapper = _config.CreateMapper();
}