Table of Contents

Constructor BsonRepresentationConfiguration

Namespace
MongoDB.EntityFrameworkCore.Metadata
Assembly
MongoDB.EntityFrameworkCore.dll

BsonRepresentationConfiguration(BsonType, bool?, bool?)

Create a new instance of BsonRepresentationConfiguration.

public BsonRepresentationConfiguration(BsonType bsonType, bool? allowOverflow = null, bool? allowTruncation = null)

Parameters

bsonType BsonType

The BsonType for this configuration.

allowOverflow bool?

true to allow overflow, false to throw when overflow would occur.

allowTruncation bool?

true to allow truncation, false to throw when truncation would occur.