Table of Contents

Method MapProperty

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

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

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

public BsonMemberMap MapProperty<TMember>(Expression<Func<TClass, TMember>> propertyLambda)

Parameters

propertyLambda Expression<Func<TClass, TMember>>

A lambda expression specifying the property.

Returns

BsonMemberMap

The member map.

Type Parameters

TMember

The member type.