Table of Contents

Class BsonClassMap<TClass>

Namespace
MongoDB.Bson.Serialization
Assembly
MongoDB.Bson.dll

Represents a mapping between a class and a BSON document.

public class BsonClassMap<TClass> : BsonClassMap

Type Parameters

TClass

The class.

Inheritance
BsonClassMap<TClass>
Inherited Members
Extension Methods

Constructors

BsonClassMap()

Initializes a new instance of the BsonClassMap class.

BsonClassMap(BsonClassMap)

Initializes a new instance of the BsonClassMap class.

BsonClassMap(Action<BsonClassMap<TClass>>)

Initializes a new instance of the BsonClassMap class.

Methods

CreateInstance()

Creates an instance.

GetMemberMap<TMember>(Expression<Func<TClass, TMember>>)

Gets a member map.

MapCreator(Expression<Func<TClass, TClass>>)

Creates a creator map and adds it to the class map.

MapExtraElementsField<TMember>(Expression<Func<TClass, TMember>>)

Creates a member map for the extra elements field and adds it to the class map.

MapExtraElementsMember<TMember>(Expression<Func<TClass, TMember>>)

Creates a member map for the extra elements member and adds it to the class map.

MapExtraElementsProperty<TMember>(Expression<Func<TClass, TMember>>)

Creates a member map for the extra elements property and adds it to the class map.

MapField<TMember>(Expression<Func<TClass, TMember>>)

Creates a member map for a field and adds it to the class map.

MapIdField<TMember>(Expression<Func<TClass, TMember>>)

Creates a member map for the Id field and adds it to the class map.

MapIdMember<TMember>(Expression<Func<TClass, TMember>>)

Creates a member map for the Id member and adds it to the class map.

MapIdProperty<TMember>(Expression<Func<TClass, TMember>>)

Creates a member map for the Id property and adds it to the class map.

MapMember<TMember>(Expression<Func<TClass, TMember>>)

Creates a member map and adds it to the class map.

MapProperty<TMember>(Expression<Func<TClass, TMember>>)

Creates a member map for the property and adds it to the class map.

UnmapField<TMember>(Expression<Func<TClass, TMember>>)

Removes the member map for a field from the class map.

UnmapMember<TMember>(Expression<Func<TClass, TMember>>)

Removes a member map from the class map.

UnmapProperty<TMember>(Expression<Func<TClass, TMember>>)

Removes a member map for a property from the class map.