RelationalEntityTypeExtensions.SetSchema Methode

Definition

Überlädt

SetSchema(IConventionEntityType, String, Boolean)

Legt das Datenbankschema fest, das die zugeordnete Tabelle enthält.

SetSchema(IMutableEntityType, String)

Legt das Datenbankschema fest, das die zugeordnete Tabelle enthält.

SetSchema(IConventionEntityType, String, Boolean)

Legt das Datenbankschema fest, das die zugeordnete Tabelle enthält.

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

Parameter

entityType
IConventionEntityType

Der Entitätstyp, für den das Schema festgelegt werden soll.

value
String

Der festzulegende Wert.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Der konfigurierte Wert.

Gilt für:

SetSchema(IMutableEntityType, String)

Legt das Datenbankschema fest, das die zugeordnete Tabelle enthält.

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

Parameter

entityType
IMutableEntityType

Der Entitätstyp, für den das Schema festgelegt werden soll.

value
String

Der festzulegende Wert.

Gilt für: