Class ConventionPack
- Namespace
- MongoDB.Bson.Serialization.Conventions
- Assembly
- MongoDB.Bson.dll
A mutable pack of conventions.
public class ConventionPack : IConventionPack, IEnumerable<IConvention>, IEnumerable
- Inheritance
-
ConventionPack
- Implements
- Inherited Members
- Extension Methods
Constructors
- ConventionPack()
Initializes a new instance of the ConventionPack class.
Properties
- Conventions
Gets the conventions.
Methods
- Add(IConvention)
Adds the specified convention.
- AddClassMapConvention(string, Action<BsonClassMap>)
Adds a class map convention created using the specified action upon a class map.
- AddMemberMapConvention(string, Action<BsonMemberMap>)
Adds a member map convention created using the specified action upon a member map.
- AddPostProcessingConvention(string, Action<BsonClassMap>)
Adds a post processing convention created using the specified action upon a class map.
- AddRange(IEnumerable<IConvention>)
Adds a range of conventions.
- Append(IConventionPack)
Appends the conventions in another pack to the end of this pack.
- GetEnumerator()
Gets an enumerator for the conventions.
- InsertAfter(string, IConvention)
Inserts the convention after another convention specified by the name.
- InsertBefore(string, IConvention)
Inserts the convention before another convention specified by the name.
- Remove(string)
Removes the named convention.