語言

MigrationsScaffolderDependencies.CurrentContext 屬性

定義

目前的資料庫上下文。

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

屬性值

適用於