Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simpler ways to configure collections #13

Open
nscheibe opened this issue Dec 11, 2019 · 0 comments
Open

Simpler ways to configure collections #13

nscheibe opened this issue Dec 11, 2019 · 0 comments

Comments

@nscheibe
Copy link
Member

Current collection configuration needs always a separate configuration class per collection
At the moment the collections can only be configured in the way, that we have to create a configuration class (for each collection), which is inherited from the IMongoCollectionConfiguration interface. In this configuration class, we have to implement the OnConfiguring method. Afterwards, the configuration class has to be registered at the IMongoDatabaseBuilder.ConfigureCollection(...);

This is quite complex configuration process, especially if you have a simple case.... for example if you only want to set the name of the collection.

Feature request
What we would like to have, is the IMongoDatabaseBuilder.ConfigureCollection(...) method with the two overloads:

  1. With a string parameter for only to configure the name of the collection.
  2. With the IMongoCollectionBuilder directly injected here. (Then we would not have to create an extra configuration class, if we dont want/need.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant