Data access layer design (5)

Source: Internet
Author: User

5 configuration example

<? XML version = "1.0" encoding = "UTF-8"?>
<Configuration>
<Deleetask>

<! -- Database Type Configuration -->
<! -- Sqlserver/ODBC/oledb -->
<Add key = "databasetype" value = "oledb"/>
<! -- End -->

<! -- Database connection configuration -->

<! -- Sqlserver configuration item
<Add key = "provider" value = ""/>
<Add key = "databasename" value = "dbtest"/>
<Add key = "userid" value = "sa"/>
<Add key = "password" value = "sa"/>
<Add key = "integratedsecurity" value = "false"/>
<Add key = "servername" value = "lwt"/>
<Add key = "connecttimeout" value = "60"/>
<Add key = "extendedproperties" value = ""/>
<Add key = "Mode" value = ""/>
-->

<! -- Oledb configuration item -->
<! -- Mode Value: Read/readwrite/share deny NONE/share deny read/share deny write/share exclusive/write -->
<Add key = "provider" value = "Microsoft. Jet. oledb.4.0"/>
<Add key = "databasename" value = "C:/Documents and Settings/Administrator/My Documents ents/oletest. mdb"/>
<Add key = "userid" value = "admin"/>
<Add key = "password" value = ""/>
<Add key = "integratedsecurity" value = "false"/>
<Add key = "servername" value = "lwt"/>
<Add key = "connecttimeout" value = "60"/>
<Add key = "extendedproperties" value = ""/>
<Add key = "Mode" value = "readwrite"/>

<! -- ODBC configuration item (not verified) -->
<! --
<Add key = "provider" value = ""/>
<Add key = "databasename" value = "dbtest"/>
<Add key = "userid" value = "sa"/>
<Add key = "password" value = "sa"/>
<Add key = "integratedsecurity" value = "false"/>
<Add key = "servername" value = "lwt"/>
<Add key = "connecttimeout" value = "60"/>
<Add key = "extendedproperties" value = ""/>
<Add key = "Mode" value = ""/>
-->

<! -- End -->

</Appsettings>
</Configuration>

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.