@@ -15,7 +15,18 @@ public class SegmentBindingView : SegmentBindingAddOrEdit
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
public DateTime UpdateTime { get; set; }
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 分割分组名称
|
||||
/// </summary>
|
||||
public string SegmentationName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// SegmentName
|
||||
/// </summary>
|
||||
public string SegmentName { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
|
||||
public class SaveSegmentBindingAndAnswerInDto
|
||||
|
||||
@@ -27,7 +27,9 @@ namespace IRaCIS.Core.Application.Service
|
||||
|
||||
// 在此处拷贝automapper 映射
|
||||
|
||||
CreateMap<SegmentBinding, SegmentBindingView>();
|
||||
CreateMap<SegmentBinding, SegmentBindingView>()
|
||||
.ForMember(d => d.SegmentName, u => u.MapFrom(s => s.Segment.SegmentName))
|
||||
.ForMember(d => d.SegmentationName, u => u.MapFrom(s => s.Segmentation.SegmentationName));
|
||||
CreateMap<SegmentBinding, SegmentBindingAddOrEdit>().ReverseMap();
|
||||
|
||||
CreateMap<ReadingQuestionTrial, ReadingReportDto>()
|
||||
|
||||
Reference in New Issue
Block a user