Udostępnij za pośrednictwem


RelationalEntityTypeExtensions.SetTableName Metoda

Definicja

Przeciążenia

SetTableName(IMutableEntityType, String)

Ustawia nazwę tabeli, do której jest mapowany typ jednostki.

SetTableName(IConventionEntityType, String, Boolean)

Ustawia nazwę tabeli, do której jest mapowany typ jednostki.

SetTableName(IMutableEntityType, String)

Ustawia nazwę tabeli, do której jest mapowany typ jednostki.

public static void SetTableName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
public static void SetTableName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? name);
static member SetTableName : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetTableName (entityType As IMutableEntityType, name As String)

Parametry

entityType
IMutableEntityType

Typ jednostki do ustawienia nazwy tabeli.

name
String

Nazwa do ustawienia.

Dotyczy

SetTableName(IConventionEntityType, String, Boolean)

Ustawia nazwę tabeli, do której jest mapowany typ jednostki.

public static void SetTableName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name, bool fromDataAnnotation = false);
public static string SetTableName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name, bool fromDataAnnotation = false);
public static string? SetTableName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? name, bool fromDataAnnotation = false);
static member SetTableName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> unit
static member SetTableName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> string
<Extension()>
Public Sub SetTableName (entityType As IConventionEntityType, name As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetTableName (entityType As IConventionEntityType, name As String, Optional fromDataAnnotation As Boolean = false) As String

Parametry

entityType
IConventionEntityType

Typ jednostki do ustawienia nazwy tabeli.

name
String

Nazwa do ustawienia.

fromDataAnnotation
Boolean

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

Zwraca

Skonfigurowana nazwa tabeli.

Dotyczy