RelationalEntityTypeExtensions.SetComment Méthode

Définition

Surcharges

SetComment(IMutableEntityType, String)

Configure un commentaire à appliquer à la table à laquelle cette entité est mappée.

SetComment(IConventionEntityType, String, Boolean)

Configure un commentaire à appliquer à la table à laquelle cette entité est mappée.

SetComment(IMutableEntityType, String)

Configure un commentaire à appliquer à la table à laquelle cette entité est mappée.

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)

Paramètres

entityType
IMutableEntityType

Type d'entité.

comment
String

Commentaire de la table à laquelle cette entité est mappée.

S’applique à

SetComment(IConventionEntityType, String, Boolean)

Configure un commentaire à appliquer à la table à laquelle cette entité est mappée.

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

Paramètres

entityType
IConventionEntityType

Type d'entité.

comment
String

Commentaire de la table.

fromDataAnnotation
Boolean

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

Retours

Commentaire configuré.

S’applique à