Method MapIdProperty
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
MapIdProperty<TMember>(Expression<Func<TClass, TMember>>)
Creates a member map for the Id property and adds it to the class map.
public BsonMemberMap MapIdProperty<TMember>(Expression<Func<TClass, TMember>> propertyLambda)
Parameters
propertyLambda
Expression<Func<TClass, TMember>>A lambda expression specifying the Id property.
Returns
- BsonMemberMap
The member map.
Type Parameters
TMember
The member type.