共用方式為


RelationalConnection.CurrentTransaction 屬性

定義

取得目前的交易。

public virtual Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction CurrentTransaction { get; protected set; }
public virtual Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction? CurrentTransaction { get; protected set; }
member this.CurrentTransaction : Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction with get, set
Public Overridable Property CurrentTransaction As IDbContextTransaction

屬性值

適用於