Method AddMemberMapConvention
- Namespace
- MongoDB.Bson.Serialization.Conventions
- Assembly
- MongoDB.Bson.dll
AddMemberMapConvention(string, Action<BsonMemberMap>)
Adds a member map convention created using the specified action upon a member map.
public void AddMemberMapConvention(string name, Action<BsonMemberMap> action)
Parameters
name
stringThe name of the convention.
action
Action<BsonMemberMap>The action the convention should take upon the member map.