示例#1
0
        public override void DoCreateFile(string filename)
        {
            string conns = EfzTool.GetConnectionString(filename, EfzLogin, EfzPassword);

            using (DbConnection conn = new EfzConnection(conns))
            {
                conn.Open();
                conn.Close();
            }
        }
示例#2
0
 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();
 }