Design: Allow script/update etc. to run when context is not in target project, but can be found in services #7710
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-enhancement
Milestone
Listing DbContext's will return contexts that are registered in services, even if they reside in another project. Some commands (such as adding a migration) require the target project, since they generate code files, but others only need a context instance and could run by getting the context from services.
Perhaps we could also consider making this work if there is an IDbContextFactory in the target project.
This will help ASP.NET Core publishing.
cc @vijayrkn @mlorbetske
The text was updated successfully, but these errors were encountered: