SQLite is a small database engine that has become very popular. The database is stored as a local file, and you can embed the SQLite engine with your app using one of the libraries below.
Here are three different libraries you can use to access SQLite databases from .NET or Mono:
- Mono includes a SQLite interface, but it does not yet support ADO.NET's DataAdapter class.
- The SQLite.NET wrapper works with Windows .NET, however it does not follow the standard ADO.NET api.
- (recommended) The Finisar ADO.NET Provider for SQLite complies with the ADO.NET API.
See this tutorial on using SQLite from a .NET app.
Sample Code
Here is a sample using Mono's SQLite interface. It is a boo port of the Mono SQLite test case. Note, this code has not been tested, it may contain syntax errors. It is for illustration purposes only. Also, the DataAdapter section at the bottom will not work anyway.
Labels

4 Comments
Hide/Show CommentsFeb 16, 2005
Arild Fines
What's wrong with this one? http://sourceforge.net/projects/adodotnetsqlite/
Feb 16, 2005
dholton dholton
I added that one, thanks.
Feb 16, 2005
Arild Fines
It's not in Managed C++, though. The release notes for version 0.17(current is 0.21) reads:
Version 0.17 (June 24, 2004)
Oct 30, 2010
Carlos Mundi
This wiki page currently (2010-10-30) recommends
http://sourceforge.net/projects/adodotnetsqlite
but that sourceforge page indicates that the project is dead and in turn recommends
http://sourceforge.net/projects/sqlite-dotnet2/
cm