共用方式為


RelationalDatabaseCreatorDependencies.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

屬性值

適用於