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

属性值

属性

适用于