_MapConfig.cs 361 B

1234567891011121314151617
  1. using AutoMapper;
  2. using Admin.Core.Model.Admin;
  3. namespace Admin.Core.Service.Admin.View.Input
  4. {
  5. /// <summary>
  6. /// 映射配置
  7. /// </summary>
  8. public class MapConfig : Profile
  9. {
  10. public MapConfig()
  11. {
  12. CreateMap<ViewAddInput, ViewEntity>();
  13. CreateMap<ViewUpdateInput, ViewEntity>();
  14. }
  15. }
  16. }