RAD Studio for Microsoft .NET - Embarcadero Technologies
RAD Studio for Microsoft .NET - Embarcadero Technologies
RAD Studio for Microsoft .NET - Embarcadero Technologies
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
1.1 Developing Database Applications with <strong>RAD</strong> <strong>Studio</strong> <strong>for</strong> <strong>Microsoft</strong> .<strong>NET</strong> AdoDbx.<strong>NET</strong> Data Types<br />
1.1.3 AdoDbx.<strong>NET</strong> Data Types<br />
AdoDbx Client data types map to .<strong>NET</strong> logical types. Dependant upon the database, AdoDbx Client data types map to native<br />
data types. Where applicable, AdoDbx Client provides:<br />
• Consistent data type mapping across databases.<br />
• Logical data types mapped to .<strong>NET</strong> native types.<br />
AdoDbx and .<strong>NET</strong> Framework<br />
The DataSet class within ADO.<strong>NET</strong> uses .<strong>NET</strong> Framework data types. AdoDbx Client data types logically map .<strong>NET</strong> data types<br />
<strong>for</strong> supported databases. During designtime, you can use AdoDbx Client logical types, which will map to the appropriate native<br />
type.<br />
Data Types<br />
DB2<br />
The .<strong>NET</strong> Framework includes a wide range of logical data types. AdoDbx Client inherits logical data types, providing built-in<br />
mappings to supported databases. AdoDbx Client supports logical data type mappings <strong>for</strong> DB2, InterBase, MS SQL, MSDE, and<br />
Oracle.<br />
AdoDbx Client supports the following DB2 type mappings.<br />
DB2 Type Bdp Type BdpSubType System.Type<br />
CHAR String stFixed String<br />
VARCHAR String NA String<br />
SMALLINT Int16 NA Int16<br />
BIGINT Int64 NA Int64<br />
INTEGER Int32 NA Int32<br />
DOUBLE Double NA Double<br />
FLOAT Float NA Single<br />
REAL Float NA Single<br />
DATE Date NA DateTime<br />
TIME Time NA DateTime<br />
TIMESTAMP Datetime NA DateTime<br />
NUMERIC Decimal NA Decimal<br />
DECIMAL Decimal NA Decimal<br />
BLOB Blob stBinary Byte[]<br />
CLOB Blob stMemo Char[]<br />
InterBase<br />
AdoDbx Client supports the following InterBase type mappings.<br />
InterBase Type Bdp Type BdpSubType System.Type<br />
CHAR String stFixed String<br />
VARCHAR String NA String<br />
11<br />
1