DbTransaction.SupportsSavepoints Property

Definition

Gets a value that indicates whether this DbTransaction instance supports database savepoints. If false, the methods SaveAsync(String, CancellationToken), RollbackAsync(String, CancellationToken) and ReleaseAsync(String, CancellationToken) as well as their synchronous counterparts are expected to throw NotSupportedException.

C#
public virtual bool SupportsSavepoints { get; }

Property Value

true if this DbTransaction instance supports database savepoints; otherwise, false.

Applies to

Product Versions
.NET 5, 6, 7, 8, 9, 10