コード例 #1
0
        public BLectorGroup(LectorGroup lectorGroup)
        {
            var          config          = new MapperConfiguration(cfg => cfg.CreateMap <LectorGroup, BLectorGroup>());
            Mapper       mapper          = new Mapper(config);
            BLectorGroup tmpBLectorGroup = mapper.Map <BLectorGroup>(lectorGroup);

            this.LectorId = tmpBLectorGroup.LectorId;
            this.GroupId  = tmpBLectorGroup.GroupId;
        }
コード例 #2
0
 private bool Equals(BLectorGroup other)
 {
     return(LectorId == other.LectorId &&
            GroupId == other.GroupId);
 }