Table of Contents

Method AddClassMapConvention

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

AddClassMapConvention(string, Action<BsonClassMap>)

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

public void AddClassMapConvention(string name, Action<BsonClassMap> action)

Parameters

name string

The name of the convention.

action Action<BsonClassMap>

The action the convention should take upon the class map.