简体   繁体   English

WPF MVVM中用于实体框架的免费数据库

[英]Free database for Entity Framework in WPF MVVM

I want to use a free database to do some databinding (storage) in my WPF Application (PixelSense). 我想使用一个免费的数据库在WPF应用程序(PixelSense)中进行一些数据绑定(存储)。

I have already used SQL Server 2010 with Visual Studio 2010 and it works very fine. 我已经将SQL Server 2010与Visual Studio 2010一起使用了,并且效果很好。

I've heard also that Entity Framework does not work great with MySQL due to some incompatibility issues, and SQLite doesn't support Booleans. 我还听说由于某些不兼容问题,Entity Framework在MySQL上无法正常工作,并且SQLite不支持布尔值。

What do you suggest for me in this case ? 在这种情况下,您对我有什么建议?

Edit

Thank you, I've choosed Microsoft SQL Server 2008 R2 Express 谢谢,我选择了Microsoft SQL Server 2008 R2 Express

Why : Free , by Microsoft , almost the same as SQL Server 为什么: Free ,由Microsoft ,与SQL Server几乎相同

In microsoft world, you can use : 在microsoft world中,您可以使用:

  • Sql Server Express SQL Server Express
    • 10Gb per DB size limitation 每个DB大小限制为10Gb
  • Sql Local DB , which is the replacement for Sql Server User Instance. Sql Local DB ,它是Sql Server用户实例的替代品。 It's part of Sql Server Express. 它是Sql Server Express的一部分。
    • 10Gb per DB size limitation 每个DB大小限制为10Gb
  • Sql Compact SQL紧凑
    • 4Gb per DB size limitation 每个DB大小限制为4Gb

As it's Microsoft products, you will have less probability of issues. 由于它是Microsoft产品,因此出现问题的可能性较小。

My preference goes to Sql Compact because of its low binaries footprint. 我偏爱Sql Compact,因为它的二进制文件占用空间小。 There are however some limitation (ntext not supported very well), at least in the version I used some years ago. 但是存在一些限制(至少不能很好地支持ntext),至少在我几年前使用的版本中。

Good to know, Access database are not supported . 众所周知, 不支持 Access数据库。 While Access has not a good reputation, for local app it make senses. 虽然Access的声誉不佳,但对于本地应用程序来说却很有意义。

Outside Microsoft World, SqlLite has a good reputation. 在Microsoft World之外, SqlLite享有很高的声誉。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM