Table of Contents

Class TableAttributeConvention

Namespace
MongoDB.EntityFrameworkCore.Metadata.Conventions
Assembly
MongoDB.EntityFrameworkCore.dll

A convention that configures the collection name for entity types based on an applied TableAttribute for familiarity/compatibility with other EF providers.

public class TableAttributeConvention : TypeAttributeConventionBase<TableAttribute>, IEntityTypeAddedConvention, IConvention
Inheritance
TableAttributeConvention
Implements
Inherited Members

Constructors

TableAttributeConvention(ProviderConventionSetBuilderDependencies)

Creates a CollectionAttributeConvention.

Methods

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TableAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Called after an entity type is added to the model if it has an attribute.