_baseMappingProfile.cs 717 B

123456789101112131415161718192021222324252627282930
  1. using OASystem.Domain.Dtos;
  2. using OASystem.Domain.Entities;
  3. using OASystem.Domain.Entities.System;
  4. using OASystem.Domain.ViewModels;
  5. using OASystem.Domain.ViewModels.System;
  6. namespace OASystem.Domain.AutoMappers
  7. {
  8. public class _baseMappingProfile : Profile
  9. {
  10. public _baseMappingProfile()
  11. {
  12. //CreateMap<OrderDto, Order>();
  13. #region Login
  14. CreateMap<LoginDto, Sys_Users>();
  15. #endregion
  16. #region 系统设置
  17. #region 部门
  18. CreateMap<Sys_DepartmentDto, Sys_Department>();
  19. CreateMap<Sys_Department, Sys_DepartmentView>();
  20. #endregion
  21. #endregion
  22. }
  23. }
  24. }