public override bool Equals(object entity)
        {
            MatchResultEntity mr = entity as MatchResultEntity;

            return(MatchId == mr.MatchId &&
                   SportId == mr.SportId &&
                   Result == mr.Result &&
                   ResultStatus == mr.ResultStatus);
        }
Example #2
0
 public void CompareSetMatchResult(MatchResultEntity matchResult)
 {
     if (matchResult == null)
     {
         return;
     }
     if (MatchResult == null || !MatchResult.Equals(matchResult))
     {
         MatchResult = matchResult;
     }
 }