_baseMappingProfile.cs 998 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using OASystem.Domain.Dtos.System;
  2. using OASystem.Domain.Dtos.UserDto;
  3. using OASystem.Domain.Entities;
  4. using OASystem.Domain.Entities.System;
  5. using OASystem.Domain.ViewModels;
  6. using OASystem.Domain.ViewModels.System;
  7. namespace OASystem.Domain.AutoMappers
  8. {
  9. public class _baseMappingProfile : Profile
  10. {
  11. public _baseMappingProfile()
  12. {
  13. //CreateMap<OrderDto, Order>();
  14. #region Login
  15. CreateMap<LoginDto, Sys_Users>();
  16. #endregion
  17. #region 公司板块
  18. CreateMap<Sys_Company, CompanyView>();
  19. #endregion
  20. #region 部门板块
  21. CreateMap<DepartmentDto, Sys_Department>();
  22. CreateMap<Sys_Department, DepartmentView>();
  23. #endregion
  24. #region 用户板块
  25. CreateMap<UserDto, Sys_Users>();
  26. CreateMap<Sys_Users, UserInfoView>();
  27. CreateMap<UserInfoView,UserIView>();
  28. #endregion
  29. }
  30. }
  31. }