Class BsonIdPropertyAttributeConvention
- Assembly
- MongoDB.EntityFrameworkCore.dll
A convention that configures the element name for entity properties based on an applied MongoDB.Bson.Serialization.Attributes.BsonIdAttribute for familiarity with the Mongo C# Driver.
public sealed class BsonIdPropertyAttributeConvention : PropertyAttributeConventionBase<BsonIdAttribute>, IPropertyAddedConvention, IPropertyFieldChangedConvention, IConvention
- Inheritance
-
PropertyAttributeConventionBase<BsonIdAttribute>BsonIdPropertyAttributeConvention
- Implements
- Inherited Members
Constructors
- BsonIdPropertyAttributeConvention(ProviderConventionSetBuilderDependencies)
Creates a new instance of BsonIdPropertyAttributeConvention.
Methods
- ProcessPropertyAdded(IConventionPropertyBuilder, BsonIdAttribute, MemberInfo, IConventionContext)
Called after a property is added to the entity type with an attribute on the associated CLR property or field.