RelationalModelExtensions.SetDefaultSchema Метод

Определение

Перегрузки

SetDefaultSchema(IMutableModel, String)

Задает схему по умолчанию.

SetDefaultSchema(IConventionModel, String, Boolean)

Задает схему по умолчанию.

SetDefaultSchema(IMutableModel, String)

Задает схему по умолчанию.

public static void SetDefaultSchema (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string value);
public static void SetDefaultSchema (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string? value);
static member SetDefaultSchema : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string -> unit
<Extension()>
Public Sub SetDefaultSchema (model As IMutableModel, value As String)

Параметры

model
IMutableModel

Модель, для установки схемы по умолчанию.

value
String

Задаваемое значение.

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

SetDefaultSchema(IConventionModel, String, Boolean)

Задает схему по умолчанию.

public static void SetDefaultSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string value, bool fromDataAnnotation = false);
public static string SetDefaultSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string value, bool fromDataAnnotation = false);
public static string? SetDefaultSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string? value, bool fromDataAnnotation = false);
static member SetDefaultSchema : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> unit
static member SetDefaultSchema : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * bool -> string
<Extension()>
Public Sub SetDefaultSchema (model As IConventionModel, value As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetDefaultSchema (model As IConventionModel, value As String, Optional fromDataAnnotation As Boolean = false) As String

Параметры

model
IConventionModel

Модель, для установки схемы по умолчанию.

value
String

Задаваемое значение.

fromDataAnnotation
Boolean

Указывает, была ли конфигурация указана с помощью заметки к данным.

Возвращаемое значение

Настроенная схема.

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