Table of Contents

Class BsonRepresentationAttributeConvention

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

A convention that configures the element name for entity properties based on an applied MongoDB.Bson.Serialization.Attributes.BsonElementAttribute for familiarity with the Mongo C# Driver.

public sealed class BsonRepresentationAttributeConvention : PropertyAttributeConventionBase<BsonRepresentationAttribute>, IPropertyAddedConvention, IPropertyFieldChangedConvention, IConvention
Inheritance
PropertyAttributeConventionBase<BsonRepresentationAttribute>
BsonRepresentationAttributeConvention
Implements
Inherited Members

Constructors

BsonRepresentationAttributeConvention(ProviderConventionSetBuilderDependencies)

Creates a BsonRepresentationAttributeConvention.

Methods

ProcessPropertyAdded(IConventionPropertyBuilder, BsonRepresentationAttribute, MemberInfo, IConventionContext)

Called after a property is added to the entity type with an attribute on the associated CLR property or field.