예제 #1
0
        public override bool Equals(object entity)
        {
            PlayerTimeRecord ptr = entity as PlayerTimeRecord;

            return(MatchId == ptr.MatchId &&
                   PlayerId == ptr.PlayerId &&
                   IsStarting == ptr.IsStarting &&
                   IsInPlay == ptr.IsInPlay &&
                   IsOutPlay == ptr.IsOutPlay &&
                   MinutesPlayed == ptr.MinutesPlayed);
        }
예제 #2
0
        public void CompareSet(PlayerTimeRecord record)
        {
            if (this.Equals(record))
            {
                return;
            }

            MatchId       = record.MatchId;
            PlayerId      = record.PlayerId;
            IsStarting    = record.IsStarting;
            IsInPlay      = record.IsInPlay;
            IsOutPlay     = record.IsOutPlay;
            MinutesPlayed = record.MinutesPlayed;
        }