語言

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 中的交易 。

適用於