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