LINQ with SQLite (linqtosql)

前端 未结 9 1847
轮回少年
轮回少年 2020-11-28 03:30

I have a small project that require a storage (I choose SQLite) and I got good result with the ADO DLL for .Net for Sqlite.

After the Install, I noticed that it conta

相关标签:
9条回答
  • 2020-11-28 03:58

    This isn't an answer to your question as such, but as an alternative you could use SQL Compact:

    http://www.microsoft.com/Sqlserver/2005/en/us/compact.aspx

    Which has good LINQ-to-SQL support, and (despite the name) is great for desktop apps with small storage requirements.

    0 讨论(0)
  • 2020-11-28 04:02

    Since DBLinq is no longer maintained, I kept searching and found this answer which sort of unclearly points to a solution using Linq to Sql, Entity Framework, and SQLite. The blog post he links to is a little out of date, but with some tweaks I got a working example up on GitHub.

    It should run OOTB in Visual Studio 2013. It shows adding a record (with related record in another table), modify, and delete. The Artist and Album classes represent records in their respective tables (part of the Entity Framework, I believe). See the readme for a few gotchas to watch out for.

    0 讨论(0)
  • 2020-11-28 04:03

    I know this question is old, but at this time, I think we can found an official implementation of SQLite support for .NET here : http://system.data.sqlite.org/index.html/doc/trunk/www/index.wiki. A good introductory article should be found here : http://www.codeproject.com/Articles/236918/Using-SQLite-embedded-database-with-entity-framewo

    0 讨论(0)
提交回复
热议问题