Constructor BsonIgnoreIfNullAttributePropertyAttributeConvention
- Assembly
- MongoDB.EntityFrameworkCore.dll
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.
public BsonIgnoreIfNullAttributePropertyAttributeConvention(ProviderConventionSetBuilderDependencies dependencies)
Parameters
dependencies
ProviderConventionSetBuilderDependenciesThe ProviderConventionSetBuilderDependencies conventions depend upon.