共用方式為


DbContextFactoryOptions.EnvironmentName 屬性

定義

警告

Use the ASPNETCORE_ENVIRONMENT environment variable instead.

取得或設定環境的名稱。

public virtual string EnvironmentName { get; set; }
[System.Obsolete("Use the ASPNETCORE_ENVIRONMENT environment variable instead.", true)]
public virtual string EnvironmentName { get; set; }
member this.EnvironmentName : string with get, set
[<System.Obsolete("Use the ASPNETCORE_ENVIRONMENT environment variable instead.", true)>]
member this.EnvironmentName : string with get, set
Public Overridable Property EnvironmentName As String

屬性值

屬性

適用於