public override void DoCreateFile(string filename) { string conns = EfzTool.GetConnectionString(filename, EfzLogin, EfzPassword); using (DbConnection conn = new EfzConnection(conns)) { conn.Open(); conn.Close(); } }
public override void DoOpenFile() { using (DbConnection conn = new EfzConnection(EfzTool.GetConnectionString(OpenFileName, EfzLogin, EfzPassword))) { Async.InvokeFromGui(conn.Open); Async.InvokeFromGui(conn.Close); } EfzStoredConnection stored = new EfzStoredConnection(); stored.DbFilename = OpenFileName; stored.FileName = GetNewFilePath(".con"); stored.Login = EfzLogin; stored.Password = EfzPassword; stored.Save(); }
public override string GenerateConnectionString(bool includepwd) { return(EfzTool.GetConnectionString(DbFilename, Login, Password)); }