SQLiteConnection - SQLiteConnection()



This constructor simply creates a new SQLiteConnection-Object with empty ConnectionString.


Additional information

To connect to a SQLite-Database simply:

1) Create the SQLiteConnection-Object

2) Set a ConnectionString

3) Call Open()


Example Code

using Finisar.SQLite;
// [snip] - As C# is purely object-oriented the following lines must be put into a class:
SQLiteConnection sqlite_conn; // Declare the SQLiteConnection-Object

sqlite_conn = new SQLiteConnection(); // Create an instance of the object
sqlite_conn.ConnectionString = "Data Source=c:\\test-database.db;Version=3;New=True;Compress=True;"; // Set the ConnectionString
sqlite_conn.Open(); // Open the connection. Now you can fire SQL-Queries