2010-01-18 43 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