Skip to content

Centralized configuration and dependency support through contexts #21

@Turnerj

Description

@Turnerj

One area that is under developed is support for configuring the context and the MongoDbSets it creates. There should be settings on the context which are passed on through to a MongoDbSet which allow control of things like validation or whether navigation properties/entity relationships are enabled. Kinda like how MongoDB does it in the driver with MongoCollectionSettings and MongoDatabaseSettings.

Related to this, it is worth updating how entity mappers are created from the top of the tree (aka. context). Perhaps have an attribute like [Mapping(typeof(MyCustomEntityMapper))] to allow a user to control the actual mapping tool used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancements & features

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions