Class SqlType
- Namespace
- LinqToDB.DataProvider.SqlServer
- Assembly
- linq2db.dll
See Data types.
public abstract class SqlType
- Inheritance
-
SqlType
- Derived
-
SqlType<T>
- Extension Methods
Constructors
SqlType(string)
protected SqlType(string dataType)
Parameters
dataType
string
Properties
BigInt
public static SqlType<long?> BigInt { get; }
Property Value
BinaryMax
public static SqlType<byte[]?> BinaryMax { get; }
Property Value
Bit
public static SqlType<bool?> Bit { get; }
Property Value
CharMax
public static SqlType<string?> CharMax { get; }
Property Value
Cursor
public static SqlType<object?> Cursor { get; }
Property Value
Date
public static SqlType<DateTime?> Date { get; }
Property Value
Datetime
public static SqlType<DateTime?> Datetime { get; }
Property Value
Image
public static SqlType<byte[]?> Image { get; }
Property Value
Int
public static SqlType<int?> Int { get; }
Property Value
Money
public static SqlType<decimal?> Money { get; }
Property Value
NCharMax
public static SqlType<string?> NCharMax { get; }
Property Value
NText
public static SqlType<string?> NText { get; }
Property Value
NVarCharMax
public static SqlType<string?> NVarCharMax { get; }
Property Value
Real
public static SqlType<float?> Real { get; }
Property Value
RowVersion
public static SqlType<byte[]?> RowVersion { get; }
Property Value
SmallDatetime
public static SqlType<DateTime?> SmallDatetime { get; }
Property Value
SmallInt
public static SqlType<short?> SmallInt { get; }
Property Value
SmallMoney
public static SqlType<decimal?> SmallMoney { get; }
Property Value
SqlVariant
public static SqlType<object?> SqlVariant { get; }
Property Value
Table
public static SqlType<object?> Table { get; }
Property Value
Text
public static SqlType<string?> Text { get; }
Property Value
TinyInt
public static SqlType<byte?> TinyInt { get; }
Property Value
UniqueIdentifier
public static SqlType<Guid?> UniqueIdentifier { get; }
Property Value
VarBinaryMax
public static SqlType<byte[]?> VarBinaryMax { get; }
Property Value
VarCharMax
public static SqlType<string?> VarCharMax { get; }
Property Value
Methods
Binary()
public static SqlType<byte[]?> Binary()
Returns
Binary(int)
public static SqlType<byte[]?> Binary(int size)
Parameters
size
int
Returns
Char()
public static SqlType<string?> Char()
Returns
Char(int)
public static SqlType<string?> Char(int size)
Parameters
size
int
Returns
Datetime2()
public static SqlType<DateTime?> Datetime2()
Returns
Datetime2(int)
public static SqlType<DateTime?> Datetime2(int size)
Parameters
size
int
Returns
DatetimeOffset()
public static SqlType<DateTimeOffset?> DatetimeOffset()
Returns
DatetimeOffset(int)
public static SqlType<DateTimeOffset?> DatetimeOffset(int size)
Parameters
size
int
Returns
Decimal()
public static SqlType<decimal?> Decimal()
Returns
Decimal(int)
public static SqlType<decimal?> Decimal(int precision)
Parameters
precision
int
Returns
Decimal(int, int)
public static SqlType<decimal?> Decimal(int precision, int scale)
Parameters
Returns
Float()
public static SqlType<double?> Float()
Returns
Float(int)
public static SqlType<double?> Float(int n)
Parameters
n
int
Returns
Geography()
public static SqlType<object?> Geography()
Returns
Geography<T>()
public static SqlType<T> Geography<T>()
Returns
- SqlType<T>
Type Parameters
T
Geometry()
public static SqlType<object?> Geometry()
Returns
Geometry<T>()
public static SqlType<T> Geometry<T>()
Returns
- SqlType<T>
Type Parameters
T
HierarchyID()
public static SqlType<object?> HierarchyID()
Returns
HierarchyID<T>()
public static SqlType<T> HierarchyID<T>()
Returns
- SqlType<T>
Type Parameters
T
NChar()
public static SqlType<string?> NChar()
Returns
NChar(int)
public static SqlType<string?> NChar(int size)
Parameters
size
int
Returns
NVarChar()
public static SqlType<string?> NVarChar()
Returns
NVarChar(int)
public static SqlType<string?> NVarChar(int size)
Parameters
size
int
Returns
Numeric()
public static SqlType<decimal?> Numeric()
Returns
Numeric(int)
public static SqlType<decimal?> Numeric(int precision)
Parameters
precision
int
Returns
Numeric(int, int)
public static SqlType<decimal?> Numeric(int precision, int scale)
Parameters
Returns
Time()
public static SqlType<TimeSpan?> Time()
Returns
Time(int)
public static SqlType<TimeSpan?> Time(int size)
Parameters
size
int
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
VarBinary()
public static SqlType<byte[]?> VarBinary()
Returns
VarBinary(int)
public static SqlType<byte[]?> VarBinary(int size)
Parameters
size
int
Returns
VarChar()
public static SqlType<string?> VarChar()
Returns
VarChar(int)
public static SqlType<string?> VarChar(int size)
Parameters
size
int
Returns
Xml()
public static SqlType<string?> Xml()
Returns
Xml<T>()
public static SqlType<T> Xml<T>()
Returns
- SqlType<T>
Type Parameters
T