GetDBType

Method GetDBType Method

Class :CA.Blocks.SQLServerDataAccess.SqlServerDataAccess

Namespace :CA.Blocks.SQLServerDataAccess

Assembly : CA.Blocks.SQLServerDataAccess.dll

This is usefull when you dont know the sql datatype but you do know the physical type example is datatable DataColumn dc = ?? AddInputParamCommand(cmd, dc.ColumnName, dr[dc], GetDBType(dc.DataType), dc.MaxLength);

Protected MethodGetDBType(System.Type)

This is usefull when you dont know the sql datatype but you do know the physical type example is datatable DataColumn dc = ?? AddInputParamCommand(cmd, dc.ColumnName, dr[dc], GetDBType(dc.DataType), dc.MaxLength);

Parameters
NameTypeDescription
theTypeSystem.Type
Returns

System.Data.SqlDbType