SQLite and C# WinForms

DesignPattern

New member
Mar 26, 2013
17
1
0
Los Angeles
I'm thinking about using SQLite as my database for my winform projects (and possibly web projects as well). Does anyone have any experience with using these two technologies together that would care to share your experience? I've been using serialization but my apps break when I have a record set with more than 10,000 records.
 


There is an ADO adapter to use SQLite with C#, but the about page mentions it's had no updates since 2010, and that the creator is no longer an active contributor.

Also, you mention you're using serialization...I assume this means that key/value pair style retrieval is all you need? There are C# clients for Redis. Also, can't vouch for it, but there's a c# specific nosql project on Github called BinaryRage. The readme seems to indicate it's in use in large commercial environments.
 
I don't use C#, but I do use SQLite, and it's very nice, never had any problems. It's really hard to break it.
 
One thing to watch out for is that sqlite will lock up during any write operation. Multiple writes at the same time = no-go. Probably won't matter if you're building anything small, but if it's a large web app, use PostgreSQL or MySQL instead.
 
I'm thinking about using SQLite as my database for my winform projects (and possibly web projects as well). Does anyone have any experience with using these two technologies together that would care to share your experience? I've been using serialization but my apps break when I have a record set with more than 10,000 records.

I've made this transition over time and for 'Applications' that are distributed, I've been using SQLite 3. For me it's about the compatibility across devices without needing to install lots of extra DB stuff (that's intimidating to beginners).

Here's the library I use:
System.Data.SQLite: About

gtownfunk