public override void DoCreateFile(string filename) { string conns = String.Format("Data Source={0};New=True;Version={1}", filename, 3); using (DbConnection conn = SqliteDriver.GetConnection(conns)) { conn.Open(); conn.Close(); } }
public override void DoOpenFile() { using (DbConnection conn = SqliteDriver.GetConnection(String.Format("Data Source={0}", OpenFileName))) { Async.InvokeFromGui(conn.Open); Async.InvokeFromGui(conn.Close); } SQLiteStoredConnection stored = new SQLiteStoredConnection(); stored.DbFilename = OpenFileName; stored.FileName = GetNewFilePath(".con"); stored.Save(); }
public override DbProviderFactory GetFactory() { return(SqliteDriver.GetFactory()); }