Convention over convention: enabling provider conventions

Enable provider-specific conventions by allowing override of ConventionModelBuilder.
Add ModelBuilderSelector so that the convention model builder used can be determined by DI.
I believe DI resolves to the type most recently registered.

.AddSingleton< TypeA , implementation>() overwrites any previous
registrations for "TypeA"


On Mon, Jul 21, 2014 at 1:59 PM, Arthur Vickers <notifications@github.com>
wrote:

> In src/EntityFramework/Infrastructure/DefaultModelSource.cs:
>
> >
> > -        public DefaultModelSource([NotNull] DbSetFinder setFinder)
> > +        public DefaultModelSource([NotNull] DbSetFinder setFinder, [NotNull] ModelBuilderSelector modelBuilderSelector)
>
> What will this resolve to in cases where multiple ModelBuilderSelector
> classes are registered?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/aspnet/EntityFramework/pull/438/files#r15196017>.
>