Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 13;

            hash = (hash * 7) + PrimaryKey.GetHashCode();
            hash = (hash * 7) + SecondaryKey.GetHashCode();
            return(hash);
        }
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Columns != null ? Columns.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PrimaryKey != null ? PrimaryKey.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Identifier != null ? Identifier.GetHashCode() : 0);
         return(hashCode);
     }
 }
Beispiel #3
0
        public override int GetHashCode()
        {
            var result = (Columns != null ? Columns.GetHashCode() : 0);

            result = 29 * result + Clustered.GetHashCode();
            result = 29 * result + NullAllowances.GetHashCode();
            result = 29 * result + PrimaryKey.GetHashCode();
            result = 29 * result + Unique.GetHashCode();
            return(result);
        }
Beispiel #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Line;
         hashCode = (hashCode * 397) ^ PrimaryKey.GetHashCode();
         // ReSharper disable once NonReadonlyMemberInGetHashCode
         hashCode = (hashCode * 397) ^ Deleted.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ColumnOrdinal;
         hashCode = (hashCode * 397) ^ (DataTypeName != null ? DataTypeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ PrimaryKey.GetHashCode();
         hashCode = (hashCode * 397) ^ Generated.GetHashCode();
         hashCode = (hashCode * 397) ^ CaseSensitive.GetHashCode();
         return(hashCode);
     }
 }
Beispiel #6
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ColumnInfo != null ? ColumnInfo.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (NewColumnName != null ? NewColumnName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsRowVersion.GetHashCode();
         hashCode = (hashCode * 397) ^ PrimaryKey.GetHashCode();
         hashCode = (hashCode * 397) ^ InsertIgnore.GetHashCode();
         hashCode = (hashCode * 397) ^ (EnumDeclaration != null ? EnumDeclaration.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Exclude.GetHashCode();
         hashCode = (hashCode * 397) ^ (ForgeinKeyDeclarations != null ? ForgeinKeyDeclarations.GetHashCode() : 0);
         return(hashCode);
     }
 }
            /// <summary>
            ///     Returns a hash code for this instance.
            /// </summary>
            /// <returns>
            ///     A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
            /// </returns>
            public override int GetHashCode( )
            {
                unchecked
                {
                    int hash = 17;

                    if (PrimaryKey != null)
                    {
                        hash = hash * 92821 + PrimaryKey.GetHashCode( );
                    }

                    hash = hash * 92821 + SecondaryKey.GetHashCode( );

                    return(hash);
                }
            }
Beispiel #8
0
 public override int GetHashCode()
 {
     return(PrimaryKey.GetHashCode());
 }