2016-01-22 66 views

回答

2

就我所見,它沒有出現在web.config文件的標準佈局中。

standard way of handling db connections在一個web.config是:

<connectionStrings> 
    <add 
    name="NorthwindConnectionString" 
    connectionString="Data Source=serverName;Initial 
    Catalog=Northwind;Persist Security Info=True;User 
    ID=userName;Password=password" 
    providerName="System.Data.SqlClient" 
    /> 
</connectionStrings> 

這可能是在你的配置一個custom section,在這種情況下將被定義爲:

<configuration> 
<!-- Configuration section-handler declaration area. --> 
    <configSections> 
    <sectionGroup name="databasesettings">