RelationalEntityTypeExtensions.SetComment Methode

Definition

Ü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: