0
我只想知道web.config文件中標記的用法以及它起什麼作用。 有人可以引用我的文檔資源或向我解釋這個標籤的使用和它的屬性。asp.net中標記<databaseSettings>的用法
我只想知道web.config文件中標記的用法以及它起什麼作用。 有人可以引用我的文檔資源或向我解釋這個標籤的使用和它的屬性。asp.net中標記<databaseSettings>的用法
就我所見,它沒有出現在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">
你能發佈一個(redacted)的例子嗎? – NikolaiDante