A.3. Mapping of OLE DB DBTYPEs to .NET data types
Table A-3 maps the members of the OleDbType enumeration to OLE DB DBTYPEs and the .NET type system.
Member Name | Description |
---|---|
BigInt | A 64-bit signed integer (DBTYPE_I8). This maps to Int64. |
Binary | A stream of binary data (DBTYPE_BYTES). This maps to an Array of type Byte. |
Boolean | A Boolean value (DBTYPE_BOOL). This maps to Boolean. |
BSTR | A null-terminated character string of Unicode characters (DBTYPE_BSTR). This maps to String. |
Char | A character string (DBTYPE_STR). This maps to String. |
Currency | A currency value ranging from –263 (or –922,337,203,685,477.5808) to 263 –1 (or +922,337,203,685,477.5807) with an accuracy to a ten-thousandth of a currency unit (DBTYPE_CY ... |
Get Essential ADO.NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.