Table of Contents

Class BsonDefaultValueAttributeConvention

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

Recognized MongoDB.Bson.Serialization.Attributes.BsonDefaultValueAttribute applied to properties of an entity to ensure the model throw later as it is not supported in the EF provider.

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

Constructors

BsonDefaultValueAttributeConvention(ProviderConventionSetBuilderDependencies)

Recognized MongoDB.Bson.Serialization.Attributes.BsonDefaultValueAttribute applied to properties of an entity to ensure the model throw later as it is not supported in the EF provider.