我试图让LINQ在C#.NET中使用SQLite工作
I am trying to get LINQ to work with SQLite in C# .NET
我下载http://system.data.sqlite.org/downloads/1.0.92.0/sqlite-netFx451-setup-bundle-x86-2013-1.0.92.0.exe并且它有一个装配在它
I downloaded http://system.data.sqlite.org/downloads/1.0.92.0/sqlite-netFx451-setup-bundle-x86-2013-1.0.92.0.exe and it has an assembly in it:
System.Data.SQLite.Linq.dll
System.Data.SQLite.Linq.dll
我怎样才能获得LINQ提供程序的工作?如何设置数据上下文?我看过很多谷歌的搜索结果都无济于事。
How can I get the LINQ provider working? How do I setup a data context? I have looked at many Google search results to no avail.
LINQ 是刚的规范。它需要一个实现(即供应商),以实际工作。实现的例子包括的LINQ to对象,的的LINQ to XML 和实体框架。
LINQ is just a specification. It requires an implementation (aka a provider) to actually work. Examples of implementations include LINQ to Objects, LINQ to XML, and Entity Framework.
在 System.Data.SQLite.Linq
集包含的SQLite的实体框架提供。前一段时间,我写了关于如何开始一个博客帖子。请参见实体框架上的SQLite 。
The System.Data.SQLite.Linq
assembly contains SQLite's Entity Framework provider. A while ago, I wrote a blog post on how to get started. See Entity Framework on SQLite.