Exemple #1
0
 static void UsingIngresConnection(IngresConnection connection, Action <DbConnection> action)
 {
     using (IngresConnection conn = (IngresConnection)connection.Clone())
     {
         conn.Open();
         action(conn);
         // using's Dispose will close conn
     } // end using clone of IngresConnection
 }