Sprache

RelationalPropertyBuilderExtensions.HasComment Methode

Definition

Überlädt

Name Beschreibung
HasComment(PropertyBuilder, String)

Konfiguriert einen Kommentar, der auf die Spalte angewendet werden soll.

HasComment(IConventionPropertyBuilder, String, Boolean)

Konfiguriert einen Kommentar, der auf die Spalte angewendet werden soll.

HasComment<TProperty>(PropertyBuilder<TProperty>, String)

Konfiguriert einen Kommentar, der auf die Spalte angewendet werden soll.

HasComment(PropertyBuilder, String)

Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs

Konfiguriert einen Kommentar, der auf die Spalte angewendet werden soll.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder HasComment(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, string? comment);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder HasComment(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, string comment);
static member HasComment : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function HasComment (propertyBuilder As PropertyBuilder, comment As String) As PropertyBuilder

Parameter

propertyBuilder
PropertyBuilder

Der Generator für die zu konfigurierende Eigenschaft.

comment
String

Der Kommentar für die Spalte.

Gibt zurück

Dieselbe Generatorinstanz, sodass mehrere Aufrufe verkettet werden können.

Hinweise

Weitere Informationen und Beispiele finden Sie unter Modellieren von Entitätstypen und Beziehungen .

Gilt für:

HasComment(IConventionPropertyBuilder, String, Boolean)

Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs

Konfiguriert einen Kommentar, der auf die Spalte angewendet werden soll.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasComment(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string? comment, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder HasComment(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string comment, bool fromDataAnnotation = false);
static member HasComment : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
<Extension()>
Public Function HasComment (propertyBuilder As IConventionPropertyBuilder, comment As String, Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

Parameter

propertyBuilder
IConventionPropertyBuilder

Der Generator für die zu konfigurierende Eigenschaft.

comment
String

Der Kommentar für die Spalte.

fromDataAnnotation
Boolean

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

Gibt zurück

Die gleiche Generatorinstanz, wenn die Konfiguration angewendet wurde, null andernfalls.

Hinweise

Weitere Informationen und Beispiele finden Sie unter Modellieren von Entitätstypen und Beziehungen .

Gilt für:

HasComment<TProperty>(PropertyBuilder<TProperty>, String)

Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs
Quelle:
RelationalPropertyBuilderExtensions.cs

Konfiguriert einen Kommentar, der auf die Spalte angewendet werden soll.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> HasComment<TProperty>(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, string? comment);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> HasComment<TProperty>(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, string comment);
static member HasComment : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function HasComment(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty), comment As String) As PropertyBuilder(Of TProperty)

Typparameter

TProperty

Der Typ der konfigurierten Eigenschaft.

Parameter

propertyBuilder
PropertyBuilder<TProperty>

Der Generator für die zu konfigurierende Eigenschaft.

comment
String

Der Kommentar für die Spalte.

Gibt zurück

Dieselbe Generatorinstanz, sodass mehrere Aufrufe verkettet werden können.

Hinweise

Weitere Informationen und Beispiele finden Sie unter Modellieren von Entitätstypen und Beziehungen .

Gilt für: