@@ -16,7 +16,6 @@ namespace IRaCIS.Core.Application.Service
|
||||
|
||||
|
||||
|
||||
CreateMap<RoleCommand, Role>();
|
||||
|
||||
CreateMap<UserCommand, User>().ForMember(d => d.UserCode, x => x.Ignore());
|
||||
CreateMap<UserType, UserTypeMenuAddOrEdit>().ReverseMap()
|
||||
@@ -45,7 +44,6 @@ namespace IRaCIS.Core.Application.Service
|
||||
CreateMap<UserType, UserTypeRoleView>()
|
||||
.ForMember(t => t.MenuIds, u => u.MapFrom(c => c.UserTypeMenuList.Select(t => t.MenuId)));
|
||||
|
||||
CreateMap<Role, RoleDTO>();
|
||||
CreateMap<Menu, MenuFunctionDTO>();
|
||||
|
||||
|
||||
|
||||
@@ -79,9 +79,6 @@ namespace IRaCIS.Core.Application.Service
|
||||
|
||||
//审计信息 这里不用IncludeMembers 也可以识别 是以导航属性名称开头
|
||||
// 还有 外键? COALESCE([t0].[SubjectId], '00000000-0000-0000-0000-000000000000') 因为destination 是Guid
|
||||
CreateMap<TrialAudit, AuditDTO>()
|
||||
.ForMember(d => d.SubjectName, u => u.MapFrom(s => s.Subject.LastName + " / " + s.Subject.FirstName))
|
||||
.ForMember(d => d.SubjectCode, u => u.MapFrom(s => s.Subject.Code));
|
||||
|
||||
|
||||
CreateMap<SubjectVisitCommand, SubjectVisit>().ForAllMembers(opt => opt.Condition((src, dest, srcMember) => srcMember != null));
|
||||
|
||||
Reference in New Issue
Block a user