Compartilhar via


TableNameFromDbSetConvention Classe

Definição

Uma convenção que configura o nome da tabela com base no nome da DbSet<TEntity> propriedade.

public class TableNameFromDbSetConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention
public class TableNameFromDbSetConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
public class TableNameFromDbSetConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
type TableNameFromDbSetConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IEntityTypeBaseTypeChangedConvention
type TableNameFromDbSetConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IEntityTypeBaseTypeChangedConvention
    interface IModelFinalizingConvention
type TableNameFromDbSetConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IEntityTypeBaseTypeChangedConvention
    interface IEntityTypeAnnotationChangedConvention
    interface IModelFinalizingConvention
Public Class TableNameFromDbSetConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention
Public Class TableNameFromDbSetConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention, IModelFinalizingConvention
Public Class TableNameFromDbSetConvention
Implements IEntityTypeAddedConvention, IEntityTypeAnnotationChangedConvention, IEntityTypeBaseTypeChangedConvention, IModelFinalizingConvention
Herança
TableNameFromDbSetConvention
Implementações

Comentários

Consulte Convenções de criação de modelo para obter mais informações e exemplos.

Construtores

TableNameFromDbSetConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Cria uma nova instância de TableNameFromDbSetConvention.

Propriedades

Dependencies

Dependências para esse serviço.

RelationalDependencies

Dependências específicas do provedor relacional para esse serviço.

Métodos

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Chamado depois que um tipo de entidade é adicionado ao modelo.

ProcessEntityTypeAnnotationChanged(IConventionEntityTypeBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

Chamado depois que uma anotação é alterada em um tipo de entidade.

ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

Chamado após o tipo base de um tipo de entidade ser alterado.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Chamado quando um modelo está sendo finalizado.

Aplica-se a