Class BsonMemberMap
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Bson.dll
Represents the mapping between a field or property and a BSON element.
public class BsonMemberMap
Inheritance
BsonMemberMap
Inherited Members
Extension Methods
Constructors
BsonMemberMap(BsonClassMap, MemberInfo)
Initializes a new instance of the BsonMemberMap class.
Properties
Gets the class map that this member map belongs to.
Gets the default value.
Gets the name of the element.
Gets the getter function.
Gets the Id generator.
Gets whether default values should be ignored when serialized.
Gets whether null values should be ignored when serialized.
Gets whether a default value was specified.
Gets whether the member is readonly.
Gets whether an element is required for this member when deserialized.
Gets the member info.
Gets the name of the member.
Gets the type of the member.
Gets whether the member type is a BsonValue.
Gets the serialization order.
Gets the setter function.
Gets the method that will be called to determine whether the member should be serialized.
Methods
Applies the default value to the member of an object.
Determines whether the specified object is equal to the current object.
Freezes this instance.
Serves as the default hash function.
Gets the serializer.
Resets the member map back to its initial state.
Sets the default value creator.
Sets the default value.
Sets the name of the element.
Sets the Id generator.
Sets whether default values should be ignored when serialized.
Sets whether null values should be ignored when serialized.
Sets whether an element is required for this member when deserialized
Sets the serialization order.
SetSerializer(IBsonSerializer)
Sets the serializer.
SetShouldSerializeMethod(Func<object, bool>)
Sets the method that will be called to determine whether the member should be serialized.
ShouldSerialize(object, object)
Determines whether a value should be serialized