Click or drag to resize

BsonMapper Methods

The BsonMapper type exposes the following members.

Methods
 NameDescription
Protected methodBuildEntityMapper Use this method to override how your class can be, by default, mapped from entity to Bson document. Returns an EntityMapper from each requested Type
Public methodDeserialize(Type, BsonValue) Deserilize a BsonValue to .NET object based on type parameter
Public methodDeserializeT(BsonValue) Deserialize a BsonValue to .NET object typed in T
Public methodEntityT Map your entity class to BsonDocument using fluent API
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetExpressionT, K Resolve LINQ expression into BsonExpression
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetIdMember Gets MemberInfo that refers to Id from a document object.
Public methodGetIndexExpressionT, K Resolve LINQ expression into BsonExpression (for index only)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodGetTypeCtor Get best construtor to use to initialize this entity. - Look if contains [BsonCtor] attribute - Look for parameterless ctor - Look for first contructor with parameter and use BsonDocument to send RawValue
Protected methodGetTypeMembers Returns all member that will be have mapper between POCO class to document
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRegisterType(Type, FuncObject, BsonValue, FuncBsonValue, Object) Register a custom type serializer/deserialize function
Public methodRegisterTypeT(FuncT, BsonValue, FuncBsonValue, T) Register a custom type serializer/deserialize function
Public methodSerialize(Type, Object) Serialize to BsonValue any .NET object based on type parameter (using mapping rules)
Public methodSerializeT(T) Serialize to BsonValue any .NET object based on T type (using mapping rules)
Public methodToDocument(Type, Object) Serialize a entity class to BsonDocument
Public methodToDocumentT(T) Serialize a entity class to BsonDocument
Public methodToObject(Type, BsonDocument) Deserialize a BsonDocument to entity class
Public methodToObjectT(BsonDocument) Deserialize a BsonDocument to entity class
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUseCamelCase Use lower camel case resolution for convert property names to field names
Public methodUseLowerCaseDelimiter Uses lower camel case with delimiter to convert property names to field names
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also