Method AddClassMapConvention

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

Namespace

MongoDB.Bson.Serialization.Conventions

Assembly

MongoDB.Bson.dll

AddClassMapConvention(string, Action)

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.