同步数据库备注到实体
continuous-integration/drone/push Build is passing

This commit is contained in:
hang
2024-09-20 22:45:48 +08:00
parent 3ee0c2ccc7
commit e9bb71f5c9
155 changed files with 209 additions and 77 deletions
@@ -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));