I want to read an sqlite database in my Windows Store application, if it exists...
Usually to read a table from database, i set the path where it's located, and then i call the SQLiteConnection function...
The questions is, why if the database not exists when i call a simple function like this
public static async Task<ObservableCollection<Objects>> GetAll()
{
List<Objects> list;
using (var db = new SQLiteConnection(dbPath))
{
// Activate Tracing
db.Trace = true;
list = (from p in db.Table<Objects>()
select p).ToList();
}
a database is created?
The empty database is created when new SQLiteConnection(dbPath) is invoked.
is possible to open a connection without create it?