public static IDbCommand CreateCommand(IDbConnection connection, string sql)
 {
     try {
         DatabaseConnection conn = new DatabaseConnection(GetExecutionForConnection(connection).DatabaseServices, connection);
         return(ADOAdaptersUtils.AdapterCommand(conn.CreateCommand(sql).DriverCommand));
     } catch (InvalidDatabaseAccessException e) {
         throw new InvalidDBTransactionManagerAccess(e.Message);
     }
 }
 public static IDbCommand CreateCommand(IDbTransaction transaction)
 {
     try {
         IDbTransaction trans = ADOAdaptersUtils.GetADOTransaction(transaction);
         return(ADOAdaptersUtils.AdapterCommand(GetExecutionForConnection(trans.Connection).CreateCommand(trans, "")));
     } catch (InvalidDatabaseAccessException e) {
         throw new InvalidDBTransactionManagerAccess(e.Message);
     }
 }