Skip to content

Remove BsonClassMap.AutoMap from Mapping Registration Process #106

@Turnerj

Description

@Turnerj

As MongoFramework implements its own mapping system, its time to replace the AutoMap call using the MongoDB convention pack.

The DefaultConventionPack uses the following:
https://github.com/mongodb/mongo-csharp-driver/blob/5d89fe5d928f8b4ef5476114dea3f9531b8dd94a/src/MongoDB.Bson/Serialization/Conventions/DefaultConventionPack.cs#L37-L47

There is also an AttributeConventionPack however seems mostly superfluous:
https://github.com/mongodb/mongo-csharp-driver/blob/5d89fe5d928f8b4ef5476114dea3f9531b8dd94a/src/MongoDB.Bson/Serialization/Conventions/AttributeConventionPack.cs

Of the default conventions, here is the state of things:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions