Sdílet prostřednictvím


RelationalEntityTypeExtensions.SetComment Metoda

Definice

Přetížení

SetComment(IMutableEntityType, String)

Nakonfiguruje komentář, který se použije u tabulky, na která je tato entita namapovaná.

SetComment(IConventionEntityType, String, Boolean)

Nakonfiguruje komentář, který se použije u tabulky, na která je tato entita namapovaná.

SetComment(IMutableEntityType, String)

Nakonfiguruje komentář, který se použije u tabulky, na která je tato entita namapovaná.

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)

Parametry

entityType
IMutableEntityType

Typ entity.

comment
String

Komentář k tabulce, na která je tato entita namapovaná.

Platí pro

SetComment(IConventionEntityType, String, Boolean)

Nakonfiguruje komentář, který se použije u tabulky, na která je tato entita namapovaná.

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

Parametry

entityType
IConventionEntityType

Typ entity.

comment
String

Komentář k tabulce

fromDataAnnotation
Boolean

Určuje, zda byla konfigurace zadána pomocí datové poznámky.

Návraty

Nakonfigurovaný komentář

Platí pro