Share via


RelationalEntityTypeExtensions.SetComment Metodo

Definizione

Overload

SetComment(IMutableEntityType, String)

Configura un commento da applicare alla tabella a cui è mappata questa entità.

SetComment(IConventionEntityType, String, Boolean)

Configura un commento da applicare alla tabella a cui è mappata questa entità.

SetComment(IMutableEntityType, String)

Configura un commento da applicare alla tabella a cui è mappata questa entità.

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)

Parametri

entityType
IMutableEntityType

Tipo di entità.

comment
String

Il commento per la tabella a cui è mappata questa entità.

Si applica a

SetComment(IConventionEntityType, String, Boolean)

Configura un commento da applicare alla tabella a cui è mappata questa entità.

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

Parametri

entityType
IConventionEntityType

Tipo di entità.

comment
String

Commento per la tabella.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata utilizzando un'annotazione dati.

Restituisce

Commento configurato.

Si applica a