Data Access function library for ado.net2.0

Source: Internet
Author: User

Objective

Source code and Invoke demo download: http://www.cnblogs.com/jyk/archive/2008/04/25/1170979.html

Description of the data Access function library for Ado.net 1.1: http://www.cnblogs.com/jyk/category/67121.html

Because of the use of vs2003 development, the data Access function library (hereinafter referred to as: Access Library) has not been able to consider the ado.net2.0. Although ado.net2.0 did not change at the time of the call, the internal structure changed a lot, adding a series of base classes, making it easier to replace the database.

Although the current data Access function library using VS2008 open, to upgrade, and then can be used, but this will not be able to apply the new features of ado.net2.0, and the original inconvenient place can not be modified, so intend this time to upgrade a complete point.

Let's put up a slaughter.

The advantages of a new data access function library:

1, support a variety of databases.

2, to support the SQL statements, stored procedures, stored procedures, parameters, some of these processing (encapsulation), making the call can be more convenient.

3, support the Ado.net affairs.

4, if there is an exception in the run, you can put the exception information, function name and SQL statements into the "error log" inside, so it is convenient for programmers to find errors, on-line use, can also make a record.

5. The default database type and connection string are set inside the webconfig.

<appSettings>
<add key= "DataType" value = "1"/>
</appSettings>
<connectionstrings >
<add name= "connstr" connectionstring= "Data source=.;i Nitial catalog=northwind;integrated security=true "providername= System.Data.SqlClient"/> </
Connectionstrings>

The main purpose is to try to be as convenient as possible at the time of the call!

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.