SQLiteConnection Constructor()
Initializes a new instance of the
SQLiteConnection class.
The following example creates and opens a
SQLiteConnection.
|
|---|
public void CreateSQLiteConnection()
{
SQLiteConnection sqLiteConnection = new SQLiteConnection();
sqLiteConnection.ConnectionString =
"DataSource=mydatabase.db;";
sqLiteConnection.Open();
//Do something
sqLiteConnection.Close();
} |
|
|---|
Public Sub CreateSQLiteConnection()
Dim sqLiteConnection As New SQLiteConnection()
sqLiteConnection.ConnectionString = _
"DataSource=mydatabase.db;"
sqLiteConnection.Open()
'Do something
sqLiteConnection.Close()
End Sub |