Sorry for such a n00b question, but I thought someone mentioned ADO.NET provider for this and I can’t seem to find it. I’ve found the ADO.NET ADO Provider project for unmanaged SQLite, but is there an ADO.NET provider for this managed version?
If not, do you have a simple sample of how someone would call this using C#? For example, a sample that shows how to do the following:
Open Connection
Perform Read
Perform Write
Perform Write with Transaction
Close Connection
Would be great.
Phil
But there is nothing for an ADO.NET provider yet.
If it was made into a dll, then the provider from sqlite.phxsoftware.com
should work with some minor changes.
There are so many direction to go with this ...
Noah
The license for his ADO.NET provider is Public Domain. So if you think it'd be worth having as a separate csproj library in this project, I'll ask him if he's interested.
Phil
Great points as always Miguel.
Still, ADO.NET is going to be essential to get the vast majority of .NET developers to consider this project, so it’s definitely important. I’ll touch base with him to try and get the ball rolling. It’d probably only take him a couple hours to have it done. J
Phil
> do you have a simple sample of how someone would call this using C#?
I based the code in the proof-of-concept Sqlite for Silverlight on the Getting Started C code at sqlite.org. It only calls sqlite3_exec and reads the output, but that's enough to do everything you mentioned.
http://www.itwriting.com/csharpsqlite/silverlight-sqlite.zip
code is in MainPage.xaml.cs
Tim