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); }
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; }