我目前面臨着亞音速配置的問題。亞音速在視覺工作室設計主機
我想實現的是在System.Web.UI.Design.ControlDesigner類中使用亞音速數據訪問。
該類託管在Visual Studio環境中,並對附加的System.Web.UI.WebControls.Control啓用設計時操作。
唯一的問題是SubSonic似乎總是在應用程序配置中尋找SubSonicSection,無論將連接字符串傳遞給它。
相關的代碼片斷:
using (SharedDbConnectionScope dbScope = new SharedDbConnectionScope(new SqlDataProvider(), ConnectionString))
{
Table1 _table1 = new Select().From<..().Where(...).IsEqualTo(...).ExecuteSingle<...>();
拋出上ExecuteSingle))的異常(方法(未找到配置部分)
而
using (SharedDbConnectionScope dbScope = new SharedDbConnectionScope(ConnectionString))
{
拋出新SharedDbConnectionScope異常((配置部分未找到)
S Ø問題是:
有沒有辦法通過設置運行時繞過配置部分查找,因爲我不希望添加任何亞音速具體的配置devenv.configuration
感謝
那是該溶液中,由於 – csizo 2009-06-30 14:14:44