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

指示配置是否是使用数据注释指定的。

返回

配置的架构。

适用于