简体   繁体   English

SQL的替代方案作为客户端存储

[英]Alternative of SQL as client side Storage

i am making a client side project on Winform 4.0 or WPF, the problem is how can i store my data at client side having no SQL server installation. 我正在Winform 4.0或WPF上创建客户端项目,问题是如何在没有安装SQL Server的客户端存储我的数据。 I will provide a setup of my application which will be run by my client. 我将提供我的应用程序的设置,该设置将由我的客户运行。 Client cant install SQL server. 客户端无法安装SQL Server。 Is there database avaiable in .net that doesn't required sql installation or any other way? 是否有.net中的数据库可以不需要sql安装或任何其他方式?

You can use SQLite , which requires no installation. 您可以使用SQLite ,无需安装。 There are some ORMs out there that support SQLite, for example Dapper (which is used by StackOverflow as well.) 有一些支持SQLite的ORM,例如Dapper (StackOverflow也使用它)。

If you have to do with just simple data you can use SQL Server CE or SQLite. 如果只需要简单的数据,就可以使用SQL Server CE或SQLite。 Both will store data as files that you can create and access from code. 两者都将数据存储为您可以创建和从代码访问的文件。 To do this you'll just need some dlls in your project, no installation. 要做到这一点,你只需要在项目中使用一些dll,无需安装。 But be sure to analyse the limitations - some data types are not supported by these simple data bases etc. 但请务必分析限制 - 这些简单的数据库不支持某些数据类型等。

Have a look at RavenDb 看看RavenDb

You can have it embedded in your app. 您可以将其嵌入您的应用中。 Fast and elegant 快速而优雅

Something not mentionned yet: ManagedEsent . 还没有提到的东西: ManagedEsent Simple to use and fast. 使用简单,速度快。 For simple persitence, there is a PersistentDictionary class. 对于简单的persitence,有一个PersistentDictionary类。

You could use a SQLite database, for this. 您可以使用SQLite数据库。

If you only want to store small things, like settings, I would recommend you the following link Build-in Settings , this is easier in use, than selecting, updating, inserting and deleting from a SQLite database. 如果你只想存储小东西,比如设置,我建议你使用以下链接内置设置 ,这比从SQLite数据库中选择,更新,插入和删除更容易使用。 Another Pro is, that no dlls are required. 另一个Pro是,不需要dll。

EntityWorker.Core新的ORM和类似于entityframwork

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

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