安装 RelationExtensions 解决 petapoco 触发错误

发布于 2025-01-05 18:13:10 字数 237 浏览 3 评论 0原文

我已经从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甚是思念 2025-01-12 18:13:10

如果将 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文