SQLiteConnection - SQLiteConnection(pConnStr)

 

Description

This constructor simply creates a new SQLiteConnection-Object and sets the ConnectionString property using the supplied ConnectionString (pConnStr)

 

Additional information

To connect to a SQLite-Database simply:

1) Create the SQLiteConnection-Object

2) 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("Data Source=c:\\test-database.db;Version=3;New=True;Compress=True;"); // Create an instance of the object and set the ConnectionString
sqlite_conn.Open(); // Open the connection. Now you can fire SQL-Queries