RelationalPropertyExtensions.SetComment Methode

Definition

Überlädt

SetComment(IConventionProperty, String, Boolean)

Konfiguriert einen Kommentar, der auf die Spalte angewendet werden soll, der diese Eigenschaft zugeordnet ist.

SetComment(IMutableProperty, String)

Konfiguriert einen Kommentar, der auf die Spalte angewendet werden soll, der diese Eigenschaft zugeordnet ist.

SetComment(IConventionProperty, String, Boolean)

Konfiguriert einen Kommentar, der auf die Spalte angewendet werden soll, der diese Eigenschaft zugeordnet ist.

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

Parameter

property
IConventionProperty

Die Eigenschaft.

comment
String

Der Kommentar für die Spalte.

fromDataAnnotation
Boolean

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

Gibt zurück

Der konfigurierte Wert.

Gilt für:

SetComment(IMutableProperty, String)

Konfiguriert einen Kommentar, der auf die Spalte angewendet werden soll, der diese Eigenschaft zugeordnet ist.

public static void SetComment (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string comment);
public static void SetComment (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? comment);
static member SetComment : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetComment (property As IMutableProperty, comment As String)

Parameter

property
IMutableProperty

Die Eigenschaft.

comment
String

Der Kommentar für die Spalte.

Gilt für: