DbTransaction.SupportsSavepoints 属性

定义

获取一个值,该值指示此 DbTransaction 实例是否支持数据库保存点。 如果为 false,则 SaveAsync(String, CancellationToken)RollbackAsync(String, CancellationToken)ReleaseAsync(String, CancellationToken) 方法及其同步对应项应引发 NotSupportedException

public:
 virtual property bool SupportsSavepoints { bool get(); };
public virtual bool SupportsSavepoints { get; }
member this.SupportsSavepoints : bool
Public Overridable ReadOnly Property SupportsSavepoints As Boolean

属性值

true 如果此 DbTransaction 实例支持数据库保存点,则为 ;否则为 false

适用于