开发文档:
http://www.phpguru.org/static/SQLite.NET.html
下载:
http://www.phpguru.org/downloads/csharp/SQLite.NET/
使用范例:
using SQLite.NET;
Open
try
{
Console.WriteLine("opening db...");
// Open database
SQLiteClient db = new SQLiteClient("c:\test.db");
}
catch (SQLiteException e)
{
Console.WriteLine("Fatal error: {0}", e.Message);
return;
}
Select:
ArrayList tables = db.GetColumn("SELECT name FROM sqlite_master WHERE type = 'table'");
foreach (string tableName in tables)
{
Console.WriteLine("\t" + tableName);
}