RelationalPropertyBuilderExtensions.HasComment Méthode

Définition

Surcharges

HasComment(PropertyBuilder, String)

Configure un commentaire à appliquer à la colonne

HasComment(IConventionPropertyBuilder, String, Boolean)

Configure un commentaire à appliquer à la colonne

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

Configure un commentaire à appliquer à la colonne

HasComment(PropertyBuilder, String)

Configure un commentaire à appliquer à la colonne

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

Paramètres

propertyBuilder
PropertyBuilder

Générateur de la propriété en cours de configuration.

comment
String

Commentaire de la colonne.

Retours

Le même générateur instance afin que plusieurs appels puissent être chaînés.

Remarques

Pour plus d’informations et d’exemples, consultez Modélisation des types d’entités et des relations .

S’applique à

HasComment(IConventionPropertyBuilder, String, Boolean)

Configure un commentaire à appliquer à la colonne

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

Paramètres

propertyBuilder
IConventionPropertyBuilder

Générateur de la propriété en cours de configuration.

comment
String

Commentaire de la colonne.

fromDataAnnotation
Boolean

Indique si la configuration a été spécifiée à l’aide d’une annotation de données.

Retours

Le même générateur instance si la configuration a été appliquée, null sinon.

Remarques

Pour plus d’informations et d’exemples, consultez Modélisation des types d’entités et des relations .

S’applique à

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

Configure un commentaire à appliquer à la colonne

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)

Paramètres de type

TProperty

Type de la propriété qui est configurée.

Paramètres

propertyBuilder
PropertyBuilder<TProperty>

Générateur de la propriété en cours de configuration.

comment
String

Commentaire de la colonne.

Retours

Le même générateur instance afin que plusieurs appels puissent être chaînés.

Remarques

Pour plus d’informations et d’exemples, consultez Modélisation des types d’entités et des relations .

S’applique à