安装 RelationExtensions 解决 petapoco 触发错误
我已经从 NUGET 安装了 petapoco RelationExtensions,它触发了错误消息:
错误 4 找不到类型或命名空间名称“IDatabase”(您是否缺少 using 指令或程序集引用?)C:\Users\testkit\Models\PetaPocoRelationExtensions.cs 13
是否需要下载任何其他文件? 我该如何纠正错误?
I have installed petapoco RelationExtensions from NUGET and it`s firing error message:
Error 4 The type or namespace name 'IDatabase' could not be found (are you missing a using directive or an assembly reference?) C:\Users\testkit\Models\PetaPocoRelationExtensions.cs 13
Is there the need to dowload any other files?
How can I correct the error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果将 IDatabase 引用更改为数据库引用,这将正常工作。 Nuget 已更新以在 1.0.2 中修复此问题。
IDatabase 界面可在我的分支 http://github.com/schotime/petapoco 以及额外的功能,例如 Fluent Mapping。
If you change the IDatabase references to Database references this will work correctly. Nuget has been updated to fix this in 1.0.2.
The IDatabase interface is available on my branch at http://github.com/schotime/petapoco along with extra features, like Fluent Mapping.