AutoMapper用法
var mapConfig = new MapperConfiguration(cfg => cfg.CreateMap<SourceClass, DestinationClass>());
var mapper = mapConfig.CreateMapper();
var activit = mapper.Map<DestinationClass>(sourceObject);
温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/yidong/25616.html