SqlType(DBType dbType, int length) { this.DbType = dbType; this.Length = length; unchecked { hashCode = (dbType.GetHashCode() / 2) + (length.GetHashCode() / 2); } }
SqlType(DBType dbType, byte precision, byte scale) { this.DbType = dbType; this.Precision = precision; this.Scale = scale; unchecked { hashCode = (dbType.GetHashCode() / 3) + (precision.GetHashCode() / 3) + (scale.GetHashCode() / 3); } }
SqlType(DBType dbType, byte precision, byte scale) { this.DbType = dbType; this.Precision = precision; this.Scale = scale; unchecked { hashCode = (dbType.GetHashCode() / 3) + (precision.GetHashCode() / 3) + (scale.GetHashCode() / 3); } }
SqlType(DBType dbType, int length) { this.DbType = dbType; this.Length = length; unchecked { hashCode = (dbType.GetHashCode() / 2) + (length.GetHashCode() / 2); } }
SqlType(DBType dbType) { this.DbType = dbType; hashCode = dbType.GetHashCode(); }
SqlType(DBType dbType) { this.DbType = dbType; hashCode = dbType.GetHashCode(); }