-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add ApplyConfiguration() overloads to ModelBuilder that scans assemblies #13088
Comments
Duplicate of #13014, but bringing this back to triage since we are seeing many requests for it. |
We discussed this again in triage and since it seems to be a very popular request we will consider adding some API to discover and register IEntityTypeConfigurations from a given assembly. This would always be opt-in, meaning that to use it an explicit call must be made, and should take the Assembly to look in as a parameter. |
I'm willing to take a look at this if nobody minds. |
…Builder that scans assemblies.
…Builder that scans assemblies.
…Builder that scans assemblies.
…Builder that scans assemblies.
…oads to ModelBuilder that scans assemblies.
…o ModelBuilder that scans assemblies.
@DSilence Thanks for contributing this! |
It would be neat with an overload on
ModelBuilder
that scanned assemblies forIEntityTypeConfiguration
andIQueryTypeConfiguration
classes. The use would be:I currently use this extension method to accomplish this, but it uses reflection to do its job. (It only supports
IEntityTypeConfiguration
and notIQueryTypeConfiguration
):The text was updated successfully, but these errors were encountered: