Good embedded database solution (like SQLite) for .Net

瘦欲@ 提交于 2019-11-30 14:23:24
Craig Suchanec

The only other option I have any experience with is Microsoft SQL Server Compact if you don't want to install anything on the user side. SQL Server Express works as well if you did want to install something. It really all has to do with what features you want to have in your embedded database.

The one advantage of SQL Compact is that when its on a local drive i.e. not on a network drive it natively supports multiple connections. If you want it to write to a database on a network drive though you'll have problems with it. From your brief description it sounds like SQL Compact is what you want. If you have more specific requirements the answer might be different.

You can also check Firebird who has good dotnet driver

The embedded version is an amazing variation of the server. It is a fully featured Firebird server packed in just a few files.

dotnet driver here

From your requirements I would definitely recommend sticking with SQLite. We use it extensively and have found it to be a huge advantage over other options. Single DLL, integrates really really well with .NET, and is very fast.

If you're into object-oriented DB's, there's db4o Embedded Database.

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