This .NET sample application aims at demonstrating
Data Manipulation Language (DML) operations on DataSet through Oracle
Provider for OLE DB . The Oracle9i Release 2 OLE DB provider introduces
full support for .NET via the Microsoft OLE DB .NET data provider.
With OLE DB .NET, applications can access the Oracle database from
any .NET programming language. OLEDB .NET Data Provider provides a
collection of classes that are used to access database.
Figure 1.1, describes how the data is accessed using OLEDB .NET Provider.
Figure 1.1 Data Access Using OLEDB .NET Provider
DataSet is a major component of ADO .NET. It is an in-memory cache of
the data retrieved from the database. OleDbDataAdapter represents
a set of data commands and a database connection that are used to fill
the Dataset. OleDbCommand represents SQL statements to execute against
datasource.
When this sample is run, a list of existing products from
database appears in a tabular format. The user can change product
details by overwriting existing value. To insert new product details
the user can navigate to the end of the table and enter new product
details. To 'Commit' changes the user can click 'Save' button. The
'Update' method of the OleDbDataAdapter is called to resolve changes
from Dataset back to the data source, therefore commiting the changes.
Hence it demonstrates DML operations on a Dataset.
|