Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 public override DbProviderFactory GetFactory()
 {
     return(SqliteDriver.GetFactory());
 }