Subsonic DAL 代码生成
我正在尝试从亚音速生成达尔。但是在生成后,当我尝试编译它时,它给了我一个具有相同签名的多个定义的错误。这是我的应用程序配置。我用的是亚音速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>
I'm trying to generate dal from subsonic. But after generating when I'm trying to compile its giving me an error of multiple definitions with identical signatures. This is my app.config. I'm using subsonic 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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保您没有同时使用构建提供程序(在 App_Code 中)
Make sure you're not also using the build provider (in App_Code)