public override bool Equals(object entity) { MatchResultEntity mr = entity as MatchResultEntity; return(MatchId == mr.MatchId && SportId == mr.SportId && Result == mr.Result && ResultStatus == mr.ResultStatus); }
public void CompareSetMatchResult(MatchResultEntity matchResult) { if (matchResult == null) { return; } if (MatchResult == null || !MatchResult.Equals(matchResult)) { MatchResult = matchResult; } }