Table of Contents

Constructor BsonSerializerPropertyConvention

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

BsonSerializerPropertyConvention(ProviderConventionSetBuilderDependencies)

Recognize BsonSerializerPropertyConvention when applied to properties of an entity to ensure the model will throw as the attribute is not supported in the EF provider.

public BsonSerializerPropertyConvention(ProviderConventionSetBuilderDependencies dependencies)

Parameters

dependencies ProviderConventionSetBuilderDependencies

The ProviderConventionSetBuilderDependencies conventions depend upon.