2010-03-25 29 views
1

我嘗試使用亞音速3.0,但我不能這樣做。我決定使用subsonic.2.0。所以我儘量讓我不能:(如何使用Subsonic 2.0?

我的Web配置:

<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
    <configSections> 
    <section name="SubSonicService" 
      type="SubSonic.SubSonicSection, SubSonic" requirePermission="false"/> 
    </configSections> 
    <connectionStrings> 
    <add name="AdventureWorks" 
     connectionString="Data Source=.;Database=eticaret; 
          Integrated Security=true; User ID=sa; Password=123456;"/> 
    </connectionStrings> 
    <SubSonicService defaultProvider="eticaret"> 
    <providers> 
     <clear/> 
     <add name="eticaret" type="SubSonic.SqlDataProvider, SubSonic" 
     connectionStringName="eticaret" 
     generatedNamespace="eticaretDAL"/> 
    </providers> 
    </SubSonicService> 
</configuration>

還看這篇文章:什麼是錯誤http://www.codeproject.com/KB/database/SubsonicDAL.aspx

+1

您需要提供更多信息「什麼是錯誤?」當您告訴美國我們可以嘗試提供幫助時,我們無法看到您的整個代碼,我們沒有自動確切地知道你在做什麼。你得到什麼錯誤?爲什麼它不起作用?你想達到什麼目的?你有沒有試過?什麼在3.0中不起作用? – 2010-03-25 08:40:18

+1

「你做錯了什麼事情」應該和這個問題一樣好。 – 2010-03-25 08:49:32

回答

1

更改您的connectionStringName在「AdventureWorks的」在添加?如下所示:

<SubSonicService defaultProvider="eticaret"> 
<providers> 
    <add name="eticaret" type="SubSonic.SqlDataProvider, SubSonic" 
    connectionStringName="AdventureWorks"