2010-01-18 39 views
0

我試圖從亞音速生成dal。但在生成時,當我試圖編譯它給我一個具有相同簽名的多個定義的錯誤。這是我的app.config。我正在使用亞音速2.0。亞音速DAL代碼生成

<configSections> 
<section name="SubSonicService" 
      type="SubSonic.SubSonicSection, SubSonic" /> 
</configSections> 
<connectionStrings> 
<add name="Hercules" 
     connectionString="Data Source=SOUVIKT\SQLEXPRESS; Database=ERPVIPULDEMO; Integrated Security=true;"/> 
</connectionStrings> 
<SubSonicService defaultProvider="Hercules"> 
<providers> 
<clear/> 
<add name="Hercules" 
    type="SubSonic.SqlDataProvider, SubSonic" 
    connectionStringName="Hercules" 
    generatedNamespace="Hercules" 
    fixPluralClassName="false" 
    removeUnderscores="false" 
    relatedTableLoadPrefix="Get" 
    excludeTableList="batchstock" /> 
</providers> 
</SubSonicService> 
+0

我試過,但它仍然給錯誤。 – 2010-01-18 09:36:39

+0

請發佈錯誤信息。 – sparks 2010-01-19 01:00:22

+0

我看到代碼和亞音速兩次或有時三次生成相同的函數簽名和公共屬性。 – 2010-01-19 06:34:25

回答

1

確保您還沒有使用生成提供(在App_Code文件)

+0

我嘗試過,但仍然給它錯誤。 – 2010-01-18 08:11:07