Class CollectionNameFromDbSetConvention
- Namespace
- MongoDB.EntityFrameworkCore.Metadata.Conventions
- Assembly
- MongoDB.EntityFrameworkCore.dll
A convention that configures the collection name based on the DbSet<TEntity> property name.
public sealed class CollectionNameFromDbSetConvention : IEntityTypeAddedConvention, IConvention
- Inheritance
-
CollectionNameFromDbSetConvention
- Implements
- Inherited Members
Constructors
- CollectionNameFromDbSetConvention(ProviderConventionSetBuilderDependencies)
Creates a CollectionNameFromDbSetConvention with required dependencies.
Methods
- ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)
Called after an entity type is added to the model.