Table of Contents

Class BsonIgnoreIfNullAttributePropertyAttributeConvention

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

Recognize MongoDB.Bson.Serialization.Attributes.BsonIgnoreIfNullAttribute 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 BsonIgnoreIfNullAttributePropertyAttributeConvention : NotSupportedPropertyAttributeConvention<BsonIgnoreIfNullAttribute>, IPropertyAddedConvention, IPropertyFieldChangedConvention, IConvention
Inheritance
PropertyAttributeConventionBase<BsonIgnoreIfNullAttribute>
NotSupportedPropertyAttributeConvention<BsonIgnoreIfNullAttribute>
BsonIgnoreIfNullAttributePropertyAttributeConvention
Implements
Inherited Members

Constructors

BsonIgnoreIfNullAttributePropertyAttributeConvention(ProviderConventionSetBuilderDependencies)

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