Class BsonClassMap
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
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
Inherited Members
Extension Methods
Constructors
Initializes a new instance of the BsonClassMap class.
Initializes a new instance of the BsonClassMap class.
BsonClassMap(Action<BsonClassMap>)
Initializes a new instance of the BsonClassMap class.
Methods
Creates an instance.
GetMemberMap(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(Expression<Func<TClass, TMember>>)
Creates a member map for the extra elements field and adds it to the class map.
MapExtraElementsMember(Expression<Func<TClass, TMember>>)
Creates a member map for the extra elements member and adds it to the class map.
MapExtraElementsProperty(Expression<Func<TClass, TMember>>)
Creates a member map for the extra elements property and adds it to the class map.
MapField(Expression<Func<TClass, TMember>>)
Creates a member map for a field and adds it to the class map.
MapIdField(Expression<Func<TClass, TMember>>)
Creates a member map for the Id field and adds it to the class map.
MapIdMember(Expression<Func<TClass, TMember>>)
Creates a member map for the Id member and adds it to the class map.
MapIdProperty(Expression<Func<TClass, TMember>>)
Creates a member map for the Id property and adds it to the class map.
MapMember(Expression<Func<TClass, TMember>>)
Creates a member map and adds it to the class map.
MapProperty(Expression<Func<TClass, TMember>>)
Creates a member map for the property and adds it to the class map.
UnmapField(Expression<Func<TClass, TMember>>)
Removes the member map for a field from the class map.
UnmapMember(Expression<Func<TClass, TMember>>)
Removes a member map from the class map.
UnmapProperty(Expression<Func<TClass, TMember>>)
Removes a member map for a property from the class map.