VS. NET (C #) upgrade-2.12 _ database interface: NET Framework data provider category, vs.net

Source: Internet
Author: User

VS. NET (C #) upgrade-2.12 _ database interface: NET Framework data provider category, vs.net

. NET data provider category, such

System. Data ?? The namespace provides different ADO. NET classes.

System. Data. Common? Base classes and interfaces of various data category classes

System. Data. SqlClient ?? Operate the data category of SQL Server

SQL Server. NET Framework data provider

① The NET Framework data provider (SqlClient) uses its own protocol to communicate with SQL Server, and can directly access SQL Server without adding OLE DB or open database connection (ODBC) layer.

② Supports local transactions and distributed transactions. Distributed Transactions are automatically registered in the transaction by default, and the transaction details are automatically obtained from the Windows component service or System. Transactions.

③? In the System. Data. SqlClient namespace, You need to introduce: using System. Data. SqlClient;

Ole db. NET Framework data provider

Using System. Data. OleDb;

ODBC. NET Framework data provider

Using System. Data. Odbc;

Oracle. NET Framework data provider

Using System. Data;

Using System. Data. OracleClient;

System. Data. SqlClient class

Be familiar with the following objects

1) SqlConnection: Database Connector

2) SqlCommand: Database Name object

3) SqlCommandBuilder: Survival SQL command

4) SqlDataReader: data reader

5) SqlDataAdapter: data adapter, filled with DataSet

6) SqlParameter: defines parameters for Stored Procedures

7) SqlTransaction: Database Transaction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.