選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

AutoMapperConfig.cs 576 B

12345678910111213141516171819202122232425262728
  1. using AutoMapper;
  2. using Domain.BaseData;
  3. using Domain.Identity;
  4. using Models.BaseData;
  5. using Models.Identity;
  6. namespace Api
  7. {
  8. public class AutoMapperConfig : Profile
  9. {
  10. public AutoMapperConfig()
  11. {
  12. // Add as many of these lines as you need to map your objects
  13. CreateMap<Account, AccountModel>();
  14. CreateMap<Account, CheckLoginResponse>();
  15. CreateMap<Plant, PlantViewModel>();
  16. CreateMap<Plant, SavePlantViewModel>();
  17. CreateMap<SavePlantViewModel, Plant>();
  18. }
  19. }
  20. }