private bool Equals(BComment other) { return(Text == other.Text && TypeId == other.TypeId && StudentId == other.StudentId && CreatedBy == other.CreatedBy && TeamId == other.TeamId && Estimation == other.Estimation); }
public BComment(Comment comment) { var config = new MapperConfiguration(cfg => cfg.CreateMap <Comment, BComment>()); Mapper mapper = new Mapper(config); BComment tmpBComment = mapper.Map <BComment>(comment); this.Text = tmpBComment.Text; this.TypeId = tmpBComment.TypeId; this.StudentId = tmpBComment.StudentId; this.CreatedBy = tmpBComment.CreatedBy; this.TeamId = tmpBComment.TeamId; this.Estimation = tmpBComment.Estimation; }