我已經在app.config文件中定義我的連接字符串獲取從app.config中的ConnectionString在C#
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="CString"
connectionString="Data Source=Bilal-PC;Initial Catalog=ATMSoftware;Integrated Security=False; User Id=sa; Password=123"
providerName="System.Data.SqlClient"/>
</connectionStrings>
</configuration>
現在,我想它變成我的C#類,我已經嘗試了所有的methods。但是我在配置管理器上遇到錯誤。
請幫幫我。
順便說一句,什麼是你得到錯誤信息? – Shai 2012-01-01 14:15:18
什麼錯誤,請出示當錯誤發生時 – rene 2012-01-01 14:15:36
代碼您使用的雙贏形式或網頁形式?還請詳細說明你正在收到哪些錯誤 – naveen 2012-01-01 14:16:32