data type conversion

Using an OleDbDataReader with an OLEDB data source, the GetSchemaTable method gives me .NET Framework types in the DataType column of the returned schema table for each data field. However, when I want to compose an OleDbCommand I need OleDbType data types to specify the types of parameters for the parameter collection of the command. How do I convert from .NET Framework types to OleDbType data types?

Loader.
Up arrow icon