Chapter 15 C # ADO.NET database operation

This article is transferred from: http://m.biancheng.net/csharp/150/

Any application can't do without the storage of data. Data can be stored in memory, but it can only be accessed while the program is running and cannot be persisted.

The data can also be stored in the form of files on the disk, but the management and search of the files are very cumbersome and cannot handle large amounts of storage.

Storing data in a database is a common way to persist data in applications.

The ADO.NET component is provided in the C # language to realize the functions of connecting to the database and manipulating the data in the database.

In this chapter:
1.  C # ADO.NET database operation and common class overview
2.  C # Connection: Connect to the database
3.  C # Command: Operate the database
4.  C # DataReader: read query results
5.  C # DataSet and DataTable: save the query results to DataSet or DataTable
6.  C # DataRow and DataColumn: update the data table
7.  C # DataSet: update the database
8.  C # ComboBox: data binding of combo box control
9.  C # DataGridView: data binding of data grid control
10.  C # Data Table (DataGridView) control application case

Guess you like

Origin www.cnblogs.com/hanguoshun/p/12729451.html