(1) ADO. Net key point-structure and overview

Source: Internet
Author: User
0 ,ArticleIntroduction

Analysis of this ArticleAdo. netIs applicableAdo. netDevelopers who have a certain understanding. This is a basic template used to draw inferences from each other, divergent thinking, and sort out ideas, rather than a comprehensive detailed introduction, without sticking to details or in-depth analysis, and focusing only on the most common key points.

BeginnerAdo. netDevelopers can also draw pictures and tigers.Visual StudioThe template can be imitated to make other applications.

1 , ADO. net Features

Low coupling (the mechanism for providing disconnected data can reduce the coupling between different layers );

XMLEncoding (multiple different data sources can be integrated in a common representation );

HTTPCommunication (simple transmission, which can penetrate the firewall for flexible deployment)

2 , ADO. net Structure

It consists of the left and right parts. Data supplyProgramThe interface has four implementation classes. The data provider interacts with the database.DataadapterContains fourCommandObject, which isDatasetProvide data, whileDatasetToXMLTo facilitate interaction with other components.


3 , ADO. net Object call relationship

As shown in, from bottom to top, firstConnectionObject To obtain the link to the database, and thenSQLCommands and specificConnectionObject ConstructionCommandObject orDataadapterObject. Essentially, at this timeDataadapterThe object constructor generates its own four attributes, which correspond to fourCommandObject. Then you can fill inDatasetOr passDatareaderThe data is read.


The namespace and class prefix corresponding to the four implementation classes of the data provider interface:

namespace

class prefix

system. data. sqlclient

SQL

system. data. oledb

oledb

system. data. ODBC

odbc

system. data. oracleclient

Oracle

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.