Class BsonRepresentationConfiguration
- Namespace
- MongoDB.EntityFrameworkCore.Metadata
- Assembly
- MongoDB.EntityFrameworkCore.dll
Configuration of a BSON representation defining how the value from property should be stored in the MongoDB database.
public record BsonRepresentationConfiguration : IEquatable<BsonRepresentationConfiguration>
- Inheritance
-
BsonRepresentationConfiguration
- Implements
- Inherited Members
Constructors
- BsonRepresentationConfiguration(BsonType, bool?, bool?)
Create a new instance of BsonRepresentationConfiguration.
Properties
- AllowOverflow
true to allow overflow, false to throw when overflow would occur, null to default to provider semantics.
- AllowTruncation
true to allow truncation, false to throw when truncation would occur, null to default to provider semantics.
Methods
- CreateFrom(IDictionary<string, object>)
Create a BsonRepresentationConfiguration from an IDictionary representation so it may be recreated from an EF Core static model.
- ToDictionary()
Convert this configuration to an IDictionary representation so it may be used within an EF Core static model.