共用方式為


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

適用於