【问题标题】:Subsonic DAL code generation亚音速 DAL 代码生成
【发布时间】:2010-01-18 15:44:05
【问题描述】:

我正在尝试从亚音速生成 dal。但是在我尝试编译它时生成它给我一个具有相同签名的多个定义的错误。这是我的 app.config。我正在使用亚音速 2.0。

<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>

【问题讨论】:

  • 我试过了,但仍然给出错误。
  • 请发布错误信息。
  • 我看到代码和 subsonic 两次或有时三次生成相同的函数签名和公共属性。

标签: subsonic


【解决方案1】:

确保您没有同时使用构建提供程序(在 App_Code 中)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-13
    • 1970-01-01
    相关资源
    最近更新 更多