Table of Contents

Method MapIdProperty

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

MapIdProperty(string)

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

public BsonMemberMap MapIdProperty(string propertyName)

Parameters

propertyName string

The name of the Id property.

Returns

BsonMemberMap

The member map (so method calls can be chained).