What's a good “mobile” .NET database that supports LINQ?

笑着哭i 提交于 2020-01-03 10:05:09

问题


I'm in the process of refactoring an application and I've decided to use a mobile/embedded database.

I've been reading about SQL Server Compact Edition, but I was wondering if any of you knew of any other databases that could be used and don't have huge download sizes, as my current application is about ~2MB (installer). SQLite would be nice, but AFAIK the GSoC implementation of LINQ-to-SQLite is rather buggy at the moment.

Thanks!


回答1:


VistaDB and (as you mentioned) Sql Server Compact Edition are two small options for an embedded database. Sql Server Compact Edition can be used with Linq to SQL or Entity Framework. I believe VistaDB can be used with the Entity Framework.

Also, if you do not require a relational database, you may want to consider db4o. Rob Conery writes about this here.

Hope this helps!




回答2:


I have tried out db40 once (not the compact edition) - it is an object database. However, depending on your needs it may be a rather comfortable thing to use. They note that they support linq even for the compact edition: http://www.db4o.com/s/compactframeworkdb.aspx




回答3:


I haven't used it myself, but you might want to look at BlackFish. I'm not sure about its Linq support though, but Delphi supports Linq so it may. Another may be Embedded Firebird - again, not sure about the Linq side of things.



来源:https://stackoverflow.com/questions/423452/whats-a-good-mobile-net-database-that-supports-linq

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!