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

属性值

适用于