Method MapField

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Bson.Serialization

Assembly

MongoDB.Bson.dll

MapField(string)

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

public BsonMemberMap MapField(string fieldName)

Parameters

fieldName string

The name of the field.

Returns

BsonMemberMap

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