Method AddMemberMapConvention

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

Namespace

MongoDB.Bson.Serialization.Conventions

Assembly

MongoDB.Bson.dll

AddMemberMapConvention(string, Action)

Adds a member map convention created using the specified action upon a member map.

public void AddMemberMapConvention(string name, Action<BsonMemberMap> action)

Parameters

name string

The name of the convention.

action Action<BsonMemberMap>

The action the convention should take upon the member map.