/// <summary> /// Returns a hash code for this object. /// </summary> /// <returns> The hash code. </returns> public override int GetHashCode() { var hashCode = ClrType?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ IsKeyOrIndex.GetHashCode(); hashCode = (hashCode * 397) ^ (Size?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (IsUnicode?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (IsRowVersion?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Scale?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Precision?.GetHashCode() ?? 0); return(hashCode); }
/// <summary> /// Returns a hash code for this object. /// </summary> /// <returns> The hash code. </returns> public override int GetHashCode() { var hashCode = (ConfiguredProviderClrType != null ? ConfiguredProviderClrType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsKeyOrIndex.GetHashCode(); hashCode = (hashCode * 397) ^ (Size?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (MemberInfo?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (IsUnicode?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (IsRowVersion?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Scale?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Precision?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (_customConverter?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ModelClrType?.GetHashCode() ?? 0); return(hashCode); }
/// <summary> /// Returns a hash code for this object. /// </summary> /// <returns> The hash code. </returns> public override int GetHashCode() { var hashCode = (StoreClrType != null ? StoreClrType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsKeyOrIndex.GetHashCode(); hashCode = (hashCode * 397) ^ (Size?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (IsUnicode?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (IsRowVersion?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (IsFixedLength?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Scale?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Precision?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (_customConverter?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ModelClrType?.GetHashCode() ?? 0); return(hashCode); }
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); } }