public bool Equals(DbDiffEntry other)
 {
     if (other == null)
     {
         return(false);
     }
     if (BusinessId.GetHashCode() != other.BusinessId.GetHashCode())
     {
         return(false);
     }
     return(GetHashCode().Equals(other.GetHashCode()));
 }
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = 13;
         // ReSharper disable once NonReadonlyMemberInGetHashCode
         hashCode = (hashCode * 397) ^ BusinessId.GetHashCode();
         // ReSharper disable once NonReadonlyMemberInGetHashCode
         foreach (var column in ColumnList)
         {
             hashCode = (hashCode * 397) ^ column?.GetHashCode() ?? 0;
         }
         return(hashCode);
     }
 }
Beispiel #3
0
 /// <summary>
 ///     Fungiert als Hashfunktion für einen bestimmten Typ.
 /// </summary>
 /// <returns>
 ///     Ein Hashcode für das aktuelle Objekt.
 /// </returns>
 public override int GetHashCode()
 {
     return(GetType().GetHashCode() ^ BusinessId.GetHashCode());
 }