C# Класс nHydrate.DataImport.SqlClient.Extensions

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetSqlDbType ( System t ) : System.Data.SqlDbType

Makes a system type to a SqlDbType

IsBinaryType ( this item ) : bool

Determines if the data type is a database character type of Binary,Image,VarBinary

IsDateType ( this item ) : bool

Determines if the data type is a database character type of DateTime,DateTime2,DateTimeOffset,SmallDateTime

IsDecimalType ( this item ) : bool

Determines if the data type is a database character type of Decimal,Float,Real

IsIntegerType ( this item ) : bool

Determines if the data type is a database character type of Int,BigInt,TinyInt,SmallInt

IsMoneyType ( this item ) : bool

Determines if the data type is a database type of Money,SmallMoney

IsNumericType ( this item ) : bool

Determines if the type is a number wither floating point or integer

IsTextType ( this item ) : bool

Determines if the data type is a database character type of Char,NChar,NText,NVarChar,Text,VarChar,Xml

ValidateDataTypeMax ( this type, int length ) : int

Описание методов

GetSqlDbType() публичный статический Метод

Makes a system type to a SqlDbType
public static GetSqlDbType ( System t ) : System.Data.SqlDbType
t System
Результат System.Data.SqlDbType

IsBinaryType() публичный статический Метод

Determines if the data type is a database character type of Binary,Image,VarBinary
public static IsBinaryType ( this item ) : bool
item this
Результат bool

IsDateType() публичный статический Метод

Determines if the data type is a database character type of DateTime,DateTime2,DateTimeOffset,SmallDateTime
public static IsDateType ( this item ) : bool
item this
Результат bool

IsDecimalType() публичный статический Метод

Determines if the data type is a database character type of Decimal,Float,Real
public static IsDecimalType ( this item ) : bool
item this
Результат bool

IsIntegerType() публичный статический Метод

Determines if the data type is a database character type of Int,BigInt,TinyInt,SmallInt
public static IsIntegerType ( this item ) : bool
item this
Результат bool

IsMoneyType() публичный статический Метод

Determines if the data type is a database type of Money,SmallMoney
public static IsMoneyType ( this item ) : bool
item this
Результат bool

IsNumericType() публичный статический Метод

Determines if the type is a number wither floating point or integer
public static IsNumericType ( this item ) : bool
item this
Результат bool

IsTextType() публичный статический Метод

Determines if the data type is a database character type of Char,NChar,NText,NVarChar,Text,VarChar,Xml
public static IsTextType ( this item ) : bool
item this
Результат bool

ValidateDataTypeMax() публичный статический Метод

public static ValidateDataTypeMax ( this type, int length ) : int
type this
length int
Результат int