Condividi tramite


TableNameFromDbSetConvention Classe

Definizione

Convenzione che configura il nome della tabella in base al nome della DbSet<TEntity> proprietà.

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
Ereditarietà
TableNameFromDbSetConvention
Implementazioni

Commenti

Per altre informazioni ed esempi, vedere Convenzioni di compilazione di modelli.

Costruttori

TableNameFromDbSetConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Crea una nuova istanza di TableNameFromDbSetConvention.

Proprietà

Dependencies

Dipendenze per questo servizio.

RelationalDependencies

Dipendenze specifiche del provider relazionale per questo servizio.

Metodi

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Chiamato dopo l'aggiunta di un tipo di entità al modello.

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

Chiamato dopo la modifica di un'annotazione in un tipo di entità.

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

Chiamato dopo la modifica del tipo di base di un tipo di entità.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Chiamato quando viene finalizzato un modello.

Si applica a