Table of Contents

Method ProcessPropertyAdded

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

ProcessPropertyAdded(IConventionPropertyBuilder, BsonElementAttribute, MemberInfo, IConventionContext)

For every property added to the model that has a MongoDB.Bson.Serialization.Attributes.BsonElementAttribute use the specified name as an annotation to configure the element name used in BSON documents.

protected override void ProcessPropertyAdded(IConventionPropertyBuilder propertyBuilder, BsonElementAttribute attribute, MemberInfo clrMember, IConventionContext context)

Parameters

propertyBuilder IConventionPropertyBuilder

The builder for the property.

attribute BsonElementAttribute

The attribute.

clrMember MemberInfo

The member that has the attribute.

context IConventionContext

Additional information associated with convention execution.