C .NET Classes : DataDirect Classes

DataDirect Classes
The DataDirect data providers support additional classes that provide enhanced functionality, such as bulk load. All classes are created with 100% managed code. The following classes are provided in the DDTek.Data.Common.dll assembly:
Because the classes used for bulk loading use the generic programming model, they can be used with any DataDirect data provider and any supported database.
CsvDataReader
The CsvDataReader class provides the DataReader semantics for the CSV file format defined by DataDirect Bulk Load.
 
Table C-55 lists the public methods for the CsvDataReader class.
 
Table C-56 lists the public methods of the CsvDataReader class that have provider-specific information. For a description of the other methods supported, refer to the online help and the Microsoft .NET Framework SDK documentation.
 
CsvDataWriter
The CsvDataWriter class provides the DataWriter semantics of the CSV file format that is written by DataDirect Bulk Load.
The following C# code fragment writes the GBMAXTABLE.csv and GBMAXTABLE.xml files that will be created by the CsvDataWriter for a query on the Oracle table GBMAXTABLE.
cmd.CommandText = "SELECT * FROM GBMAXTABLE ORDER BY INTEGERCOL";
DbDataReader reader = cmd.ExecuteReader();
CsvDataWriter csvWriter = new CsvDataWriter();
csvWriter.WriteToFile("\\NC1\net\Oracle\GBMAXTABLE\GBMAXTABLE.csv", reader);
For more information, refer to the data provider’s online help.
 
Table C-58 lists the public methods for the CsvDataWriter class.
 
DbBulkCopy
The DbBulkCopy class facilitates copying rows from one data source to another.
The DbBulkCopy class follows the de facto standard defined by the Microsoft SqlBulkCopy class, and has no provider-specific public properties or methods. For information about the properties and methods supported, refer to the data provider’s online help and the Microsoft .NET Framework SDK documentation.
DbBulkCopyColumnMapping
The DbBulkCopyColumnMapping class represents a column mapping from the data sources table to a destination table.
The DbBulkCopyColumnMapping class follows the de facto standard defined by the Microsoft SqlBulkCopyColumnMapping class, and has no provider-specific public properties or methods. For information about the properties and methods supported, refer to the data provider’s online help and the Microsoft .NET Framework SDK documentation.
DbBulkCopyColumnMappingCollection
The DbBulkCopyColumnMappingCollection class is a collection of DbBulkCopyColumnMapping classes.
The DbBulkCopyColumnMappingCollection class follows the de facto standard defined by the Microsoft SqlBulkCopyColumnMappingCollection class, and has no provider-specific public properties or methods. For information about the properties and methods supported, refer to the data provider’s online help and the Microsoft .NET Framework SDK documentation.