文件名称:CPP-to-Access
介绍说明--下载内容均来自于网络,请自行研究使用
下面以Access数据库为例说明,用C#的DataSet类访问数据库的一些操作方法。操作涉及的主要C#类有:DataSet:对应数据库表的一个集合,实际上是数据库表在内存中的一个缓存DataTable:对应数据库表,是数据库表行的集合DataRow:对应数据库表行
OleDbConnection:建立数据库连接OleDbDataAdapter:由数据库生成DataSet,并负责DataSet与数据库的同步OleDbCommandBuilder:生成更新数据库所需的指令DataSet、DataTable、DataRow用于数据在缓存中的操作,这上面的操作只有更新到数据库中,修改结果才会被永久保存。OleDbConnection 是用OLEDB方法连接数据库所必需的。-The following Access database, for example, methods of operation to access the database with C# DataSet class. Operation involves the main C#
Class: DataSet: corresponds to a collection of database tables, is actually a database table in memory, a cache a DataTable:
The corresponding database table, database table rows collection of a DataRow: the corresponding database table row
The OleDbConnection: to establish a database connection the OleDbDataAdapter: generate a DataSet from the database, and is responsible for the DataSet
The OleDbCommandBuilder of database synchronization: generate the instructions required to update the database a DataSet, DataTable, a DataRow
For the operation of the data in the cache, the above operation only updates to the database, modify the results will be permanently saved.
OleDbConnection to connect to the database using the OLEDB method necessary.
OleDbConnection:建立数据库连接OleDbDataAdapter:由数据库生成DataSet,并负责DataSet与数据库的同步OleDbCommandBuilder:生成更新数据库所需的指令DataSet、DataTable、DataRow用于数据在缓存中的操作,这上面的操作只有更新到数据库中,修改结果才会被永久保存。OleDbConnection 是用OLEDB方法连接数据库所必需的。-The following Access database, for example, methods of operation to access the database with C# DataSet class. Operation involves the main C#
Class: DataSet: corresponds to a collection of database tables, is actually a database table in memory, a cache a DataTable:
The corresponding database table, database table rows collection of a DataRow: the corresponding database table row
The OleDbConnection: to establish a database connection the OleDbDataAdapter: generate a DataSet from the database, and is responsible for the DataSet
The OleDbCommandBuilder of database synchronization: generate the instructions required to update the database a DataSet, DataTable, a DataRow
For the operation of the data in the cache, the above operation only updates to the database, modify the results will be permanently saved.
OleDbConnection to connect to the database using the OLEDB method necessary.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
C_与Access.doc