public override void DoCreateFile(string filename) { string conns = EfzTool.GetConnectionString(filename, EfzLogin, EfzPassword); using (DbConnection conn = new EfzConnection(conns)) { conn.Open(); conn.Close(); } }
private void CloseInternalConnection() { if (currentConnection != null) { if (currentConnection.State == ConnectionState.Open || currentConnection.State == ConnectionState.Fetching || currentConnection.State == ConnectionState.Executing || currentConnection.State == ConnectionState.Connecting) { currentConnection.Close(); } currentConnection = null; } }
public void Close() { m_connection.Close(); }