コード例 #1
0
 private bool Equals(BGroup other)
 {
     return(Name == other.Name &&
            CourseId == other.CourseId &&
            StartDate == other.StartDate &&
            EndDate == other.EndDate);
 }
コード例 #2
0
        public BGroup(Group group)
        {
            var    config    = new MapperConfiguration(cfg => cfg.CreateMap <Group, BGroup>());
            Mapper mapper    = new Mapper(config);
            BGroup tmpBGroup = mapper.Map <BGroup>(group);

            this.Name      = tmpBGroup.Name;
            this.CourseId  = tmpBGroup.CourseId;
            this.StartDate = tmpBGroup.StartDate;
            this.EndDate   = tmpBGroup.EndDate;
        }