Table of Contents

Class BsonExtraElementsAttributeConvention

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

Recognize MongoDB.Bson.Serialization.Attributes.BsonExtraElementsAttribute when applied to properties of an entity to ensure the model will throw as the attribute is not supported in the EF provider.

public sealed class BsonExtraElementsAttributeConvention : NotSupportedPropertyAttributeConvention<BsonExtraElementsAttribute>, IPropertyAddedConvention, IPropertyFieldChangedConvention, IConvention
Inheritance
PropertyAttributeConventionBase<BsonExtraElementsAttribute>
NotSupportedPropertyAttributeConvention<BsonExtraElementsAttribute>
BsonExtraElementsAttributeConvention
Implements
Inherited Members

Constructors

BsonExtraElementsAttributeConvention(ProviderConventionSetBuilderDependencies)

Recognize MongoDB.Bson.Serialization.Attributes.BsonExtraElementsAttribute when applied to properties of an entity to ensure the model will throw as the attribute is not supported in the EF provider.