Share via


RelationalEntityTypeExtensions.SetTableName Método

Definição

Sobrecargas

SetTableName(IMutableEntityType, String)

Define o nome da tabela para a qual o tipo de entidade é mapeado.

SetTableName(IConventionEntityType, String, Boolean)

Define o nome da tabela para a qual o tipo de entidade é mapeado.

SetTableName(IMutableEntityType, String)

Define o nome da tabela para a qual o tipo de entidade é mapeado.

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)

Parâmetros

entityType
IMutableEntityType

O tipo de entidade para o qual definir o nome da tabela.

name
String

O nome a ser definido.

Aplica-se a

SetTableName(IConventionEntityType, String, Boolean)

Define o nome da tabela para a qual o tipo de entidade é mapeado.

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

Parâmetros

entityType
IConventionEntityType

O tipo de entidade para o qual definir o nome da tabela.

name
String

O nome a ser definido.

fromDataAnnotation
Boolean

Indica se a configuração foi especificada usando uma anotação de dados.

Retornos

O nome da tabela configurada.

Aplica-se a