Design Meeting Notes - November 20, 2012
Automatic EntityTypeConfiguration discovery
Code First configuration for entity types can be done directly in OnModelCreating or in classes that inherit from EntityTypeConfiguration. However, as
described by a potential contributor, each EntityTypeConfiguration still needs to be registered on the model builder, usually in OnModelCreating. This can increase coupling and result in a
lot of boilerplate code. The proposal from the potential contributor is to allow types that inherit from EntityTypeConfiguration to be discovered in an assembly and automatically added to the model builder/registrar.
We would be happy to accept this contribution, although with a few modifications from the original proposal. The motivation for the modifications is to keep the feature simple and easy to understand with a low concept count and with minimal and clean changes
to the public API surface. The modifications are: