共用方式為


ExecutionStrategyDependencies.CurrentContext 屬性

定義

對目前 DbContext 實例的間接性。

public Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext CurrentContext { get; }
public Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext CurrentContext { get; init; }
member this.CurrentContext : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext
member this.CurrentContext : Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext with get, set
Public ReadOnly Property CurrentContext As ICurrentDbContext
Public Property CurrentContext As ICurrentDbContext

屬性值

適用於