コード例 #1
0
 private bool Equals(BHWComplete other)
 {
     return(HomeworkId == other.HomeworkId &&
            StudentId == other.StudentId &&
            Status == other.Status &&
            ApproveDate == other.ApproveDate &&
            Score == other.Score &&
            CreatedOn == other.CreatedOn);
 }
コード例 #2
0
        public BHWComplete(HWComplete hwComplete)
        {
            var         config         = new MapperConfiguration(cfg => cfg.CreateMap <HWComplete, BHWComplete>());
            Mapper      mapper         = new Mapper(config);
            BHWComplete tmpHWBComplete = mapper.Map <BHWComplete>(hwComplete);

            this.HomeworkId  = tmpHWBComplete.HomeworkId;
            this.StudentId   = tmpHWBComplete.StudentId;
            this.Status      = tmpHWBComplete.Status;
            this.ApproveDate = tmpHWBComplete.ApproveDate;
            this.Score       = tmpHWBComplete.Score;
            this.CreatedOn   = tmpHWBComplete.CreatedOn;
        }