Class BsonTypeMapperOptions
Represents options used by the BsonTypeMapper.
public class BsonTypeMapperOptions
- Inheritance
-
BsonTypeMapperOptions
- Inherited Members
- Extension Methods
Constructors
BsonTypeMapperOptions()
Initializes a new instance of the BsonTypeMapperOptions class.
public BsonTypeMapperOptions()
Properties
Defaults
Gets or sets the default BsonTypeMapperOptions.
public static BsonTypeMapperOptions Defaults { get; set; }
Property Value
DuplicateNameHandling
Gets or sets how duplicate names should be handled.
public DuplicateNameHandling DuplicateNameHandling { get; set; }
Property Value
IsFrozen
Gets whether the BsonTypeMapperOptions is frozen.
public bool IsFrozen { get; }
Property Value
MapBsonArrayTo
Gets or sets the type that a BsonArray should be mapped to.
public Type MapBsonArrayTo { get; set; }
Property Value
MapBsonDocumentTo
Gets or sets the type that a BsonDocument should be mapped to.
public Type MapBsonDocumentTo { get; set; }
Property Value
MapOldBinaryToByteArray
Gets or sets whether binary sub type OldBinary should be mapped to byte[] the way sub type Binary is.
public bool MapOldBinaryToByteArray { get; set; }
Property Value
Methods
Clone()
Clones the BsonTypeMapperOptions.
public BsonTypeMapperOptions Clone()
Returns
- BsonTypeMapperOptions
The cloned BsonTypeMapperOptions.
Freeze()
Freezes the BsonTypeMapperOptions.
public BsonTypeMapperOptions Freeze()
Returns
- BsonTypeMapperOptions
The frozen BsonTypeMapperOptions.