Exemplo n.º 1
0
        public override bool Equals(object entity)
        {
            MatchEntity me = entity as MatchEntity;

            return(MatchId == me.MatchId &&
                   SeasonId == me.SeasonId &&
                   SeasonType == me.SeasonType &&
                   SportId == me.SportId &&
                   HomeId == me.HomeId &&
                   AwayId == me.AwayId &&
                   MatchDate == me.MatchDate &&
                   ExtendedData == me.ExtendedData);
        }
Exemplo n.º 2
0
 public void CompareSetMatchInfo(MatchEntity matchEntity)
 {
     if (Equals(matchEntity))
     {
         return;
     }
     MatchId      = matchEntity.MatchId;
     SeasonId     = matchEntity.SeasonId;
     SeasonType   = matchEntity.SeasonType;
     SportId      = matchEntity.SportId;
     HomeId       = matchEntity.HomeId;
     AwayId       = matchEntity.AwayId;
     MatchDate    = matchEntity.MatchDate;
     ExtendedData = matchEntity.ExtendedData;
 }