C# Class nHydrate.DataImport.SqlClient.Extensions

Show file Open project: nHydrate/nHydrate Class Usage Examples

Public Methods

Method Description
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

Method Details

GetSqlDbType() public static method

Makes a system type to a SqlDbType
public static GetSqlDbType ( System t ) : System.Data.SqlDbType
t System
return System.Data.SqlDbType

IsBinaryType() public static method

Determines if the data type is a database character type of Binary,Image,VarBinary
public static IsBinaryType ( this item ) : bool
item this
return bool

IsDateType() public static method

Determines if the data type is a database character type of DateTime,DateTime2,DateTimeOffset,SmallDateTime
public static IsDateType ( this item ) : bool
item this
return bool

IsDecimalType() public static method

Determines if the data type is a database character type of Decimal,Float,Real
public static IsDecimalType ( this item ) : bool
item this
return bool

IsIntegerType() public static method

Determines if the data type is a database character type of Int,BigInt,TinyInt,SmallInt
public static IsIntegerType ( this item ) : bool
item this
return bool

IsMoneyType() public static method

Determines if the data type is a database type of Money,SmallMoney
public static IsMoneyType ( this item ) : bool
item this
return bool

IsNumericType() public static method

Determines if the type is a number wither floating point or integer
public static IsNumericType ( this item ) : bool
item this
return bool

IsTextType() public static method

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
return bool

ValidateDataTypeMax() public static method

public static ValidateDataTypeMax ( this type, int length ) : int
type this
length int
return int