DbConnection.BeginDbTransaction(IsolationLevel) 方法

定義

當在衍生類別中被覆寫時,會開始進行資料庫交易。

C#
protected abstract System.Data.Common.DbTransaction BeginDbTransaction (System.Data.IsolationLevel isolationLevel);

參數

isolationLevel
IsolationLevel

其中一個列舉值,它指定指定要使用之交易的隔離等級。

傳回

代表新異動的物件。

備註

如果您要建立自己的連線類型,請覆寫此方法以實作開始交易所需的程序代碼。

適用於

產品 版本
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

另請參閱