Condividi tramite


Mapping dei tipi ADO ai tipi di .NET Framework

I valori presenti in un oggetto Recordset ADO o Record ADO vengono convertiti in tipi di .NET Framework per la memorizzazione nel DataSet. Nella tabella seguente viene mostrato il mapping di tipi ADO a tipi di .NET Framework.

Tipo ADO Tipo .NET Framework
adEmpty null
adBoolean Int16
adTinyInt SByte
adSmallInt Int16
adInteger Int32
adBigInt Int64
adUnsignedTinyInt promosso a Int16
adUnsignedSmallInt promosso a Int32
adUnsignedInt promosso a Int64
adUnsignedBigInt promosso a Decimal
adSingle Single
adDouble Double
adCurrency Decimal
adDecimal Decimal
adNumeric Decimal
adDate DateTime
adDBDate DateTime
adDBTime DateTime
adDBTimeStamp DateTime
adFileTime DateTime
adGUID Guid
adError ExternalException
adIUnknown object
adIDispatch object
adVariant object
adPropVariant object
adBinary byte[]
adChar string
adWChar string
adBSTR string
adChapter non supportato
adUserDefined non supportato
adVarNumeric non supportato

Vedere anche

Accesso a un oggetto Recordset ADO o Record ADO da ADO.NET