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

指出是否使用資料批註來指定組態。

傳回

已設定的架構。

適用於