Class CollectionAttributeConvention
- Namespace
- MongoDB.EntityFrameworkCore.Metadata.Conventions
- Assembly
- MongoDB.EntityFrameworkCore.dll
A convention that configures the collection name for entity types based on the applied CollectionAttribute.
public class CollectionAttributeConvention : TypeAttributeConventionBase<CollectionAttribute>, IEntityTypeAddedConvention, IConvention
- Inheritance
-
CollectionAttributeConvention
- Implements
- Inherited Members
Constructors
- CollectionAttributeConvention(ProviderConventionSetBuilderDependencies)
Creates a CollectionAttributeConvention.
Methods
- ProcessEntityTypeAdded(IConventionEntityTypeBuilder, CollectionAttribute, IConventionContext<IConventionEntityTypeBuilder>)
Called after an entity type is added to the model if it has an attribute.