RelationalEntityTypeExtensions.SetComment 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
SetComment(IMutableEntityType, String) |
Konfiguriert einen Kommentar, der auf die Tabelle angewendet werden soll, der diese Entität zugeordnet ist. |
SetComment(IConventionEntityType, String, Boolean) |
Konfiguriert einen Kommentar, der auf die Tabelle angewendet werden soll, der diese Entität zugeordnet ist. |
SetComment(IMutableEntityType, String)
Konfiguriert einen Kommentar, der auf die Tabelle angewendet werden soll, der diese Entität zugeordnet ist.
public static void SetComment (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string comment);
public static void SetComment (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? comment);
static member SetComment : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetComment (entityType As IMutableEntityType, comment As String)
Parameter
- entityType
- IMutableEntityType
Der Entitätstyp.
- comment
- String
Der Kommentar für die Tabelle, der diese Entität zugeordnet ist.
Gilt für:
SetComment(IConventionEntityType, String, Boolean)
Konfiguriert einen Kommentar, der auf die Tabelle angewendet werden soll, der diese Entität zugeordnet ist.
public static void SetComment (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string comment, bool fromDataAnnotation = false);
public static string SetComment (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string comment, bool fromDataAnnotation = false);
public static string? SetComment (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? comment, bool fromDataAnnotation = false);
static member SetComment : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> unit
static member SetComment : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> string
<Extension()>
Public Sub SetComment (entityType As IConventionEntityType, comment As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetComment (entityType As IConventionEntityType, comment As String, Optional fromDataAnnotation As Boolean = false) As String
Parameter
- entityType
- IConventionEntityType
Der Entitätstyp.
- comment
- String
Der Kommentar für die Tabelle.
- fromDataAnnotation
- Boolean
Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.
Gibt zurück
Der konfigurierte Kommentar.
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