C# Class MdxClient.TypeConverter

Convert a base data type to another base data type
Mostra file Open project: DynamicTyped/MdxClient

Public Methods

Method Description
ToDbType ( SqlDbType sqlDbType ) : DbType

Convert TSQL data type to DbType

ToDbType ( Type type ) : DbType

Convert .Net type to Db type

ToNetType ( DbType dbType ) : Type

Convert db type to .Net data type

ToNetType ( SqlDbType sqlDbType ) : Type

Convert TSQL type to .Net data type

ToSqlDbType ( DbType dbType ) : SqlDbType

Convert DbType type to TSQL data type

ToSqlDbType ( Type type ) : SqlDbType

Convert .Net type to TSQL data type

Private Methods

Method Description
Find ( DbType dbType ) : DbTypeMapEntry
Find ( SqlDbType sqlDbType ) : DbTypeMapEntry
Find ( Type type ) : DbTypeMapEntry
TypeConverter ( ) : System

Method Details

ToDbType() public static method

Convert TSQL data type to DbType
public static ToDbType ( SqlDbType sqlDbType ) : DbType
sqlDbType SqlDbType
return DbType

ToDbType() public static method

Convert .Net type to Db type
public static ToDbType ( Type type ) : DbType
type System.Type
return DbType

ToNetType() public static method

Convert db type to .Net data type
public static ToNetType ( DbType dbType ) : Type
dbType DbType
return System.Type

ToNetType() public static method

Convert TSQL type to .Net data type
public static ToNetType ( SqlDbType sqlDbType ) : Type
sqlDbType SqlDbType
return System.Type

ToSqlDbType() public static method

Convert DbType type to TSQL data type
public static ToSqlDbType ( DbType dbType ) : SqlDbType
dbType DbType
return SqlDbType

ToSqlDbType() public static method

Convert .Net type to TSQL data type
public static ToSqlDbType ( Type type ) : SqlDbType
type System.Type
return SqlDbType