共用方式為


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

適用於