熊與我我很新的C#。現在我正在查看主項目中的app.config文件。這裏是代碼:C#App.Config文件
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.0.0.0, Culture=neutral, PublicKeyToken=vsfe2wed2/>
</configSections>
<dataConfiguration defaultDatabase="Testing"/>
<connectionStrings>
<add name="Testing" connectionString="Data Source=Test123;Initial Catalog=TestData;Integrated Security=True;" providerName="System.Data.SqlClient"/>
</connectionStrings>
如果我沒有什麼別的寫在我的整個解決方案,但只是一個空的類,然後這個.config文件。這段代碼究竟做了什麼?這是建立到數據庫的連接還是隻是設置我需要建立到數據庫的連接?
謝謝