Table of Contents

Class SqlDataType

Namespace
LinqToDB.SqlQuery
Assembly
linq2db.dll
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

dataType DataType
length int?

SqlDataType(DataType, Type)

public SqlDataType(DataType dataType, Type type)

Parameters

dataType DataType
type Type

SqlDataType(DataType, Type, int)

public SqlDataType(DataType dataType, Type type, int length)

Parameters

dataType DataType
type Type
length int

SqlDataType(DataType, Type, int, int)

public SqlDataType(DataType dataType, Type type, int precision, int scale)

Parameters

dataType DataType
type Type
precision int
scale int

SqlDataType(DataType, Type, string)

public SqlDataType(DataType dataType, Type type, string dbType)

Parameters

dataType DataType
type Type
dbType string

Fields

Boolean

public static readonly SqlDataType Boolean

Field Value

SqlDataType

Byte

public static readonly SqlDataType Byte

Field Value

SqlDataType

ByteArray

public static readonly SqlDataType ByteArray

Field Value

SqlDataType

Char

public static readonly SqlDataType Char

Field Value

SqlDataType

CharArray

public static readonly SqlDataType CharArray

Field Value

SqlDataType

DateTime

public static readonly SqlDataType DateTime

Field Value

SqlDataType

DateTimeOffset

public static readonly SqlDataType DateTimeOffset

Field Value

SqlDataType

DbBinary

public static readonly SqlDataType DbBinary

Field Value

SqlDataType

DbBinaryJson

public static readonly SqlDataType DbBinaryJson

Field Value

SqlDataType

DbBitArray

public static readonly SqlDataType DbBitArray

Field Value

SqlDataType

DbBoolean

public static readonly SqlDataType DbBoolean

Field Value

SqlDataType

DbByte

public static readonly SqlDataType DbByte

Field Value

SqlDataType

DbChar

public static readonly SqlDataType DbChar

Field Value

SqlDataType

DbDate

public static readonly SqlDataType DbDate

Field Value

SqlDataType

DbDateTime

public static readonly SqlDataType DbDateTime

Field Value

SqlDataType

DbDateTime2

public static readonly SqlDataType DbDateTime2

Field Value

SqlDataType

DbDateTimeOffset

public static readonly SqlDataType DbDateTimeOffset

Field Value

SqlDataType

DbDecFloat

public static readonly SqlDataType DbDecFloat

Field Value

SqlDataType

DbDecimal

public static readonly SqlDataType DbDecimal

Field Value

SqlDataType

DbDictionary

public static readonly SqlDataType DbDictionary

Field Value

SqlDataType

DbDouble

public static readonly SqlDataType DbDouble

Field Value

SqlDataType

DbGuid

public static readonly SqlDataType DbGuid

Field Value

SqlDataType

DbImage

public static readonly SqlDataType DbImage

Field Value

SqlDataType

DbInt128

public static readonly SqlDataType DbInt128

Field Value

SqlDataType

DbInt16

public static readonly SqlDataType DbInt16

Field Value

SqlDataType

DbInt32

public static readonly SqlDataType DbInt32

Field Value

SqlDataType

DbInt64

public static readonly SqlDataType DbInt64

Field Value

SqlDataType

DbJson

public static readonly SqlDataType DbJson

Field Value

SqlDataType

DbMoney

public static readonly SqlDataType DbMoney

Field Value

SqlDataType

DbNChar

public static readonly SqlDataType DbNChar

Field Value

SqlDataType

DbNText

public static readonly SqlDataType DbNText

Field Value

SqlDataType

DbNVarChar

public static readonly SqlDataType DbNVarChar

Field Value

SqlDataType

DbSByte

public static readonly SqlDataType DbSByte

Field Value

SqlDataType

DbSingle

public static readonly SqlDataType DbSingle

Field Value

SqlDataType

DbSmallDateTime

public static readonly SqlDataType DbSmallDateTime

Field Value

SqlDataType

DbSmallMoney

public static readonly SqlDataType DbSmallMoney

Field Value

SqlDataType

DbText

public static readonly SqlDataType DbText

Field Value

SqlDataType

DbTime

public static readonly SqlDataType DbTime

Field Value

SqlDataType

DbTimeTZ

public static readonly SqlDataType DbTimeTZ

Field Value

SqlDataType

DbTimestamp

public static readonly SqlDataType DbTimestamp

Field Value

SqlDataType

DbUInt16

public static readonly SqlDataType DbUInt16

Field Value

SqlDataType

DbUInt32

public static readonly SqlDataType DbUInt32

Field Value

SqlDataType

DbUInt64

public static readonly SqlDataType DbUInt64

Field Value

SqlDataType

DbUdt

public static readonly SqlDataType DbUdt

Field Value

SqlDataType

DbVarBinary

public static readonly SqlDataType DbVarBinary

Field Value

SqlDataType

DbVarChar

public static readonly SqlDataType DbVarChar

Field Value

SqlDataType

DbVariant

public static readonly SqlDataType DbVariant

Field Value

SqlDataType

DbXml

public static readonly SqlDataType DbXml

Field Value

SqlDataType

Decimal

public static readonly SqlDataType Decimal

Field Value

SqlDataType

Double

public static readonly SqlDataType Double

Field Value

SqlDataType

Guid

public static readonly SqlDataType Guid

Field Value

SqlDataType

Int16

public static readonly SqlDataType Int16

Field Value

SqlDataType

Int32

public static readonly SqlDataType Int32

Field Value

SqlDataType

LinqBinary

public static readonly SqlDataType LinqBinary

Field Value

SqlDataType

SByte

public static readonly SqlDataType SByte

Field Value

SqlDataType

Single

public static readonly SqlDataType Single

Field Value

SqlDataType

SqlBinary

public static readonly SqlDataType SqlBinary

Field Value

SqlDataType

SqlBoolean

public static readonly SqlDataType SqlBoolean

Field Value

SqlDataType

SqlByte

public static readonly SqlDataType SqlByte

Field Value

SqlDataType

SqlBytes

public static readonly SqlDataType SqlBytes

Field Value

SqlDataType

SqlChars

public static readonly SqlDataType SqlChars

Field Value

SqlDataType

SqlDateTime

public static readonly SqlDataType SqlDateTime

Field Value

SqlDataType

SqlDecimal

public static readonly SqlDataType SqlDecimal

Field Value

SqlDataType

SqlDouble

public static readonly SqlDataType SqlDouble

Field Value

SqlDataType

SqlGuid

public static readonly SqlDataType SqlGuid

Field Value

SqlDataType

SqlInt16

public static readonly SqlDataType SqlInt16

Field Value

SqlDataType

SqlInt32

public static readonly SqlDataType SqlInt32

Field Value

SqlDataType

SqlInt64

public static readonly SqlDataType SqlInt64

Field Value

SqlDataType

SqlMoney

public static readonly SqlDataType SqlMoney

Field Value

SqlDataType

SqlSingle

public static readonly SqlDataType SqlSingle

Field Value

SqlDataType

SqlString

public static readonly SqlDataType SqlString

Field Value

SqlDataType

SqlXml

public static readonly SqlDataType SqlXml

Field Value

SqlDataType

String

public static readonly SqlDataType String

Field Value

SqlDataType

TimeSpan

public static readonly SqlDataType TimeSpan

Field Value

SqlDataType

UInt16

public static readonly SqlDataType UInt16

Field Value

SqlDataType

UInt32

public static readonly SqlDataType UInt32

Field Value

SqlDataType

UInt64

public static readonly SqlDataType UInt64

Field Value

SqlDataType

Undefined

public static readonly SqlDataType Undefined

Field Value

SqlDataType

Properties

CanBeNull

public bool CanBeNull { get; }

Property Value

bool

ElementType

public QueryElementType ElementType { get; }

Property Value

QueryElementType

IsCharDataType

public bool IsCharDataType { get; }

Property Value

bool

Precedence

public int Precedence { get; }

Property Value

int

SystemType

public Type SystemType { get; }

Property Value

Type

Type

public DbDataType Type { get; }

Property Value

DbDataType

Methods

Equals(ISqlExpression, Func<ISqlExpression, ISqlExpression, bool>)

public bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)

Parameters

other ISqlExpression
comparer Func<ISqlExpression, ISqlExpression, bool>

Returns

bool

Equals(SqlDataType?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(SqlDataType? other)

Parameters

other SqlDataType

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The 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

SqlDataType

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current object.

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

Returns

bool