private static void RollbackTransaction(IDbContextTransaction transaction, string savePoint) { if (transaction == null) { const string message = "Transaction cannot be null to perform transaction operations"; Devon4NetLogger.Error(message); throw new TransactionNullException(message); } transaction.RollbackToSavepoint(savePoint); transaction.Dispose(); }