RelationalEntityTypeExtensions.SetSchema Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ü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:
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für