Поделиться через


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

Значение свойства

Атрибуты

Применяется к