gpt4 book ai didi

c# - 如何使用 System.Data.SQLite.Linq

转载 作者:行者123 更新时间:2023-12-03 09:37:58 25 4
gpt4 key购买 nike

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












想改进这个问题?将问题更新为 on-topic对于堆栈溢出。

1年前关闭。




Improve this question




我想知道如何只使用 System.Data.SQLite.Linq 来查询 SQLite 数据库,而不涉及 Entity Framework 。

我曾使用反编译器工具检查 System.Data.SQLite.Linq 和 System.Data.SQLite.EF6,除了命名空间和 EntityFramework 被后者引用之外,它们似乎是相同的。

我在官网上看到如下描述:
http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki
enter image description here

据我了解,任何支持 Linq 的包都应该实现 IQueryProvider 和 IQueryable 接口(interface),但我在 System.Data.SQLite.Linq 包中看不到这一点。

有人可以解释一下吗?非常感谢!

最佳答案

我分析了它们的来源,甚至无法理解它是为了什么目的而引入的,以及它与 LINQ 的关系。
如果您需要没有 EF 的良好 SQLite LINQ 支持,我知道只有一个库可以有效地做到这一点 linq2db (免责声明,我是创作者之一)

关于c# - 如何使用 System.Data.SQLite.Linq,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49683108/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com