/// <summary> /// Create a savepoint and hold it for the transaction. /// </summary> /// <exception cref="Spring.Transaction.NestedTransactionNotSupportedException"> /// If the underlying transaction does not support savepoints. /// </exception> public void CreateAndHoldSavepoint(string savepoint) { SavepointManager.CreateSavepoint(savepoint); Savepoint = savepoint; }
/// <summary> /// This implementation delegates to the underlying transaction object /// (if it implements the <see cref="Spring.Transaction.ISavepointManager"/> interface) /// to create a savepoint. /// </summary> /// <exception cref="Spring.Transaction.NestedTransactionNotSupportedException"> /// If the underlying transaction does not support savepoints. /// </exception> public void CreateSavepoint(string savepoint) { SavepointManager.CreateSavepoint(savepoint); }