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

Model injecting convention #182

Conversation

TheConstructor
Copy link
Contributor

This would enable models to be externally provided.

This depends on #181 and currently lacks tests and an extension-method on ConventionBuilder hence WIP.

@TheConstructor TheConstructor changed the title WIP: Model injecting convention Model injecting convention Nov 28, 2018
@natemcmaster
Copy link
Owner

So, thanks for the PR. I think I need a little more convincing on this one. Can you share an example of a problem this solves? It seems like this might be possible to avoid adding a new convention and make improvements to ConstructorInjectionConvention instead.

@TheConstructor
Copy link
Contributor Author

If you don't feell good about it, just reject it. It was mostly meant to show that throwing while applying ConstructorInjectionConvention blocks the path for other model-factories. This IConvention can easily be recreated by applications in need of it and might help with more complex constructors..

@natemcmaster
Copy link
Owner

Ok, I'm going to close for now. If you want to revisit in the future, let me know.

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

Successfully merging this pull request may close these issues.

2 participants