IDbContextTransaction.SupportsSavepoints 属性

定义

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

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

属性值

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

注解

有关详细信息和示例,请参阅 EF Core 中的事务

适用于