Share via


DbContextFactoryOptions.EnvironmentName Property

Definition

Caution

Use the ASPNETCORE_ENVIRONMENT environment variable instead.

Gets or sets the name of the environment.

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

Property Value

Attributes

Applies to