TypeToDbType(Type, String, Collection) Method
cast .NET data type to ADO.NET DbType
Namespace: DBaddinAssembly: DBaddin in (DBaddin.dll)
Syntax
public static DbType TypeToDbType( Type t, string columnName, Collection schemaDataTypeCollection )
Parameters
- t
- Type: Typegiven .NET data type
- columnName
- Type: Stringthe column name used to look up the type in schemaDataTypeCollection
- schemaDataTypeCollection
- Type: Collectioncollection of data types from database for the current table
Returns
DbType
ADO.NET DbType