Udostępnij za pośrednictwem


RelationalEntityTypeExtensions.SetComment Metoda

Definicja

Przeciążenia

SetComment(IMutableEntityType, String)

Konfiguruje komentarz do zastosowania do tabeli, do których jest mapowana ta jednostka.

SetComment(IConventionEntityType, String, Boolean)

Konfiguruje komentarz do zastosowania do tabeli, do których jest mapowana ta jednostka.

SetComment(IMutableEntityType, String)

Konfiguruje komentarz do zastosowania do tabeli, do których jest mapowana ta jednostka.

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 jednostki.

comment
String

Komentarz do tabeli, na który ta jednostka jest mapowana.

Dotyczy

SetComment(IConventionEntityType, String, Boolean)

Konfiguruje komentarz do zastosowania do tabeli, do których jest mapowana ta jednostka.

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 jednostki.

comment
String

Komentarz do tabeli.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Skonfigurowany komentarz.

Dotyczy