Class SqlDataType
public class SqlDataType : ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable, IEquatable<SqlDataType>
- Inheritance
-
SqlDataType
- Implements
- Extension Methods
Constructors
SqlDataType(DbDataType)
public SqlDataType(DbDataType dataType)
Parameters
dataType
DbDataType
SqlDataType(DataType)
public SqlDataType(DataType dataType)
Parameters
dataType
DataType
SqlDataType(DataType, int?)
public SqlDataType(DataType dataType, int? length)
Parameters
SqlDataType(DataType, Type)
public SqlDataType(DataType dataType, Type type)
Parameters
SqlDataType(DataType, Type, int)
public SqlDataType(DataType dataType, Type type, int length)
Parameters
SqlDataType(DataType, Type, int, int)
public SqlDataType(DataType dataType, Type type, int precision, int scale)
Parameters
SqlDataType(DataType, Type, string)
public SqlDataType(DataType dataType, Type type, string dbType)
Parameters
Fields
Boolean
public static readonly SqlDataType Boolean
Field Value
Byte
public static readonly SqlDataType Byte
Field Value
ByteArray
public static readonly SqlDataType ByteArray
Field Value
Char
public static readonly SqlDataType Char
Field Value
CharArray
public static readonly SqlDataType CharArray
Field Value
DateTime
public static readonly SqlDataType DateTime
Field Value
DateTimeOffset
public static readonly SqlDataType DateTimeOffset
Field Value
DbBinary
public static readonly SqlDataType DbBinary
Field Value
DbBinaryJson
public static readonly SqlDataType DbBinaryJson
Field Value
DbBitArray
public static readonly SqlDataType DbBitArray
Field Value
DbBoolean
public static readonly SqlDataType DbBoolean
Field Value
DbByte
public static readonly SqlDataType DbByte
Field Value
DbChar
public static readonly SqlDataType DbChar
Field Value
DbDate
public static readonly SqlDataType DbDate
Field Value
DbDateTime
public static readonly SqlDataType DbDateTime
Field Value
DbDateTime2
public static readonly SqlDataType DbDateTime2
Field Value
DbDateTimeOffset
public static readonly SqlDataType DbDateTimeOffset
Field Value
DbDecFloat
public static readonly SqlDataType DbDecFloat
Field Value
DbDecimal
public static readonly SqlDataType DbDecimal
Field Value
DbDictionary
public static readonly SqlDataType DbDictionary
Field Value
DbDouble
public static readonly SqlDataType DbDouble
Field Value
DbGuid
public static readonly SqlDataType DbGuid
Field Value
DbImage
public static readonly SqlDataType DbImage
Field Value
DbInt128
public static readonly SqlDataType DbInt128
Field Value
DbInt16
public static readonly SqlDataType DbInt16
Field Value
DbInt32
public static readonly SqlDataType DbInt32
Field Value
DbInt64
public static readonly SqlDataType DbInt64
Field Value
DbJson
public static readonly SqlDataType DbJson
Field Value
DbMoney
public static readonly SqlDataType DbMoney
Field Value
DbNChar
public static readonly SqlDataType DbNChar
Field Value
DbNText
public static readonly SqlDataType DbNText
Field Value
DbNVarChar
public static readonly SqlDataType DbNVarChar
Field Value
DbSByte
public static readonly SqlDataType DbSByte
Field Value
DbSingle
public static readonly SqlDataType DbSingle
Field Value
DbSmallDateTime
public static readonly SqlDataType DbSmallDateTime
Field Value
DbSmallMoney
public static readonly SqlDataType DbSmallMoney
Field Value
DbText
public static readonly SqlDataType DbText
Field Value
DbTime
public static readonly SqlDataType DbTime
Field Value
DbTimeTZ
public static readonly SqlDataType DbTimeTZ
Field Value
DbTimestamp
public static readonly SqlDataType DbTimestamp
Field Value
DbUInt16
public static readonly SqlDataType DbUInt16
Field Value
DbUInt32
public static readonly SqlDataType DbUInt32
Field Value
DbUInt64
public static readonly SqlDataType DbUInt64
Field Value
DbUdt
public static readonly SqlDataType DbUdt
Field Value
DbVarBinary
public static readonly SqlDataType DbVarBinary
Field Value
DbVarChar
public static readonly SqlDataType DbVarChar
Field Value
DbVariant
public static readonly SqlDataType DbVariant
Field Value
DbXml
public static readonly SqlDataType DbXml
Field Value
Decimal
public static readonly SqlDataType Decimal
Field Value
Double
public static readonly SqlDataType Double
Field Value
Guid
public static readonly SqlDataType Guid
Field Value
Int16
public static readonly SqlDataType Int16
Field Value
Int32
public static readonly SqlDataType Int32
Field Value
LinqBinary
public static readonly SqlDataType LinqBinary
Field Value
SByte
public static readonly SqlDataType SByte
Field Value
Single
public static readonly SqlDataType Single
Field Value
SqlBinary
public static readonly SqlDataType SqlBinary
Field Value
SqlBoolean
public static readonly SqlDataType SqlBoolean
Field Value
SqlByte
public static readonly SqlDataType SqlByte
Field Value
SqlBytes
public static readonly SqlDataType SqlBytes
Field Value
SqlChars
public static readonly SqlDataType SqlChars
Field Value
SqlDateTime
public static readonly SqlDataType SqlDateTime
Field Value
SqlDecimal
public static readonly SqlDataType SqlDecimal
Field Value
SqlDouble
public static readonly SqlDataType SqlDouble
Field Value
SqlGuid
public static readonly SqlDataType SqlGuid
Field Value
SqlInt16
public static readonly SqlDataType SqlInt16
Field Value
SqlInt32
public static readonly SqlDataType SqlInt32
Field Value
SqlInt64
public static readonly SqlDataType SqlInt64
Field Value
SqlMoney
public static readonly SqlDataType SqlMoney
Field Value
SqlSingle
public static readonly SqlDataType SqlSingle
Field Value
SqlString
public static readonly SqlDataType SqlString
Field Value
SqlXml
public static readonly SqlDataType SqlXml
Field Value
String
public static readonly SqlDataType String
Field Value
TimeSpan
public static readonly SqlDataType TimeSpan
Field Value
UInt16
public static readonly SqlDataType UInt16
Field Value
UInt32
public static readonly SqlDataType UInt32
Field Value
UInt64
public static readonly SqlDataType UInt64
Field Value
Undefined
public static readonly SqlDataType Undefined
Field Value
Properties
CanBeNull
public bool CanBeNull { get; }
Property Value
ElementType
public QueryElementType ElementType { get; }
Property Value
IsCharDataType
public bool IsCharDataType { get; }
Property Value
Precedence
public int Precedence { get; }
Property Value
SystemType
public Type SystemType { get; }
Property Value
Type
public DbDataType Type { get; }
Property Value
Methods
Equals(ISqlExpression, Func<ISqlExpression, ISqlExpression, bool>)
public bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)
Parameters
other
ISqlExpressioncomparer
Func<ISqlExpression, ISqlExpression, bool>
Returns
Equals(SqlDataType?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(SqlDataType? other)
Parameters
other
SqlDataTypeAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
other
parameter; otherwise, false.
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
- bool
true if the specified object is equal to the current object; otherwise, false.
GetDataType(DataType)
public static SqlDataType GetDataType(DataType type)
Parameters
type
DataType
Returns
GetHashCode()
Serves as a hash function for a particular type.
public override int GetHashCode()
Returns
GetMaxDisplaySize(DataType)
public static int? GetMaxDisplaySize(DataType dbType)
Parameters
dbType
DataType
Returns
- int?
GetMaxLength(DataType)
public static int? GetMaxLength(DataType dbType)
Parameters
dbType
DataType
Returns
- int?
GetMaxPrecision(DataType)
public static int? GetMaxPrecision(DataType dbType)
Parameters
dbType
DataType
Returns
- int?
GetMaxScale(DataType)
public static int? GetMaxScale(DataType dbType)
Parameters
dbType
DataType
Returns
- int?
TypeCanBeNull(Type)
public static bool TypeCanBeNull(Type type)
Parameters
type
Type