public BTStudent(TStudent tStudent) { var config = new MapperConfiguration(cfg => cfg.CreateMap <TStudent, BTStudent>()); Mapper mapper = new Mapper(config); BTStudent tBStudent = mapper.Map <BTStudent>(tStudent); this.TeamId = tBStudent.TeamId; this.StudentId = tBStudent.StudentId; }
private bool Equals(BTStudent other) { return(TeamId == other.TeamId && StudentId == other.StudentId); }