public static bool isConnectedUser(IDbTransaction transaction, string userName)
        {
            IDbTransaction    trans            = ADOAdaptersUtils.GetADOTransaction(transaction);
            IDatabaseServices databaseServices = DBHelper.GetDatabaseServicesForConnection(trans.Connection);

            return(DBCompatibilityReflectionUtils.IsConnectedUser(transaction.Connection, userName, databaseServices.ExecutionService));
        }
        public void CloseTransaction(IDbTransaction transaction)
        {
            IDbTransaction    trans            = ADOAdaptersUtils.GetADOTransaction(transaction);
            IDatabaseServices databaseServices = DBHelper.GetDatabaseServicesForConnection(trans.Connection);

            databaseServices.TransactionService.CloseTransaction(trans);
        }
 public virtual void RollbackTransaction(IDbTransaction transaction)
 {
     try {
         IDbTransaction trans = ADOAdaptersUtils.GetADOTransaction(transaction);
         GetProviderFromConnectionNameOrMain(null).TransactionManager.RollbackTransaction(trans);
     } catch (InvalidCommitOrRollbackTransactionException e) {
         throw new InvalidCommitOrRollbackException(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);
     }
 }
 public void ReleaseTransaction(string connectionName, IDbTransaction transaction)
 {
     try {
         IDbTransaction trans = ADOAdaptersUtils.GetADOTransaction(transaction);
         GetProviderFromConnectionNameOrMain(connectionName).TransactionManager.ReleaseTransaction(trans);
     } catch (ConnectionNotFoundException e) {
         throw new DBConnectionNotFoundException(e.Message);
     } catch (InvalidDatabaseAccessException e) {
         throw new InvalidDBTransactionManagerAccess(e.Message);
     } catch (InvalidTransactionReleaseException e) {
         throw new InvalidReleaseException(e.Message);
     }
 }
 public void AssociateReader(IDbTransaction trans, IDataReader reader, string schema)
 {
     DBAccess.InnerGetProviderForTransaction(ADOAdaptersUtils.GetADOTransaction(trans), schema).TransactionManager.AssociateReader(ADOAdaptersUtils.GetADOTransaction(trans), reader);
 }