//public Type GetClosestRuntimeType() //{ // if (RuntimeOnlyType != null) // { // return RuntimeOnlyType; // } // return GetClosestRuntimeType(SqlDbType); //} //protected abstract Type GetClosestRuntimeType(DBType sqlDbType); public override int GetHashCode() { int hashCode = 0; if (RuntimeOnlyType != null) { hashCode = RuntimeOnlyType.GetHashCode(); } else if (ApplicationTypeIndex.HasValue) { hashCode = ApplicationTypeIndex.Value; } return((((hashCode ^ SqlDbType.GetHashCode()) ^ (Size.HasValue ? Size.GetValueOrDefault() : 0)) ^ Precision) ^ (Scale << 8)); }
/// <exclude /> public override int GetHashCode() { if (!_hashCode.HasValue) { _hashCode = _columnName.GetHashCode() ^ _trimmedColumnName.GetHashCode() ^ _isPrimaryKey.GetHashCode() ^ _isIdentity.GetHashCode() ^ _isComputed.GetHashCode() ^ _isNullable.GetHashCode() ^ _type.GetHashCode() ^ _sqlDbType.GetHashCode(); } return(_hashCode.Value); }