RelationalPropertyExtensions.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
| Name | Beschreibung |
|---|---|
| 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. |
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:
SetComment(IConventionProperty, String, Boolean)
Konfiguriert einen Kommentar, der auf die Spalte angewendet werden soll, der diese Eigenschaft zugeordnet ist.
public static string? SetComment(this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? comment, bool fromDataAnnotation = false);
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);
static member SetComment : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
static member SetComment : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> unit
<Extension()>
Public Function SetComment (property As IConventionProperty, comment As String, Optional fromDataAnnotation As Boolean = false) As String
<Extension()>
Public Sub SetComment (property As IConventionProperty, comment As String, Optional fromDataAnnotation As Boolean = false)
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.