RelationalEntityTypeExtensions.SetComment Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour