RelationalConnection.BeginTransaction 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
BeginTransaction() |
開始新交易。 |
BeginTransaction(IsolationLevel) |
開始新交易。 |
BeginTransaction()
開始新交易。
public virtual Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction BeginTransaction ();
abstract member BeginTransaction : unit -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
override this.BeginTransaction : unit -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
Public Overridable Function BeginTransaction () As IDbContextTransaction
傳回
新建立的交易。
實作
適用於
BeginTransaction(IsolationLevel)
開始新交易。
public virtual Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction BeginTransaction (System.Data.IsolationLevel isolationLevel);
abstract member BeginTransaction : System.Data.IsolationLevel -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
override this.BeginTransaction : System.Data.IsolationLevel -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
Public Overridable Function BeginTransaction (isolationLevel As IsolationLevel) As IDbContextTransaction
參數
- isolationLevel
- IsolationLevel
要用於交易的隔離等級。
傳回
新建立的交易。