简体   繁体   中英

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. I will provide a setup of my application which will be run by my client. Client cant install SQL server. Is there database avaiable in .net that doesn't required sql installation or any other way?

You can use SQLite , which requires no installation. There are some ORMs out there that support SQLite, for example Dapper (which is used by StackOverflow as well.)

If you have to do with just simple data you can use SQL Server CE or 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. But be sure to analyse the limitations - some data types are not supported by these simple data bases etc.

Have a look at RavenDb

You can have it embedded in your app. Fast and elegant

Something not mentionned yet: ManagedEsent . Simple to use and fast. For simple persitence, there is a PersistentDictionary class.

You could use a SQLite database, for this.

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. Another Pro is, that no dlls are required.

EntityWorker.Core新的ORM和类似于entityframwork

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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