Method MapIdField
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
MapIdField(string)
Creates a member map for the Id field and adds it to the class map.
public BsonMemberMap MapIdField(string fieldName)
Parameters
fieldName
stringThe name of the Id field.
Returns
- BsonMemberMap
The member map (so method calls can be chained).