-
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
Adding a 'profile' parameter to ef migrations add
and ef migrations update
#22190
Comments
Needs #8695 |
Note, you can currently set |
Thanks @bricelam found that work around this morning. Not really an ideal workflow, but will work for now. Seems like an update is on the horizon though in EF5? Is there any kind of estimated timeline for that? |
No significant updates around this issue specifically in 5.0.0, but that version will be released at www.dotnetconf.net in November. |
Closing in favor of #8695 |
It is possible to implement IDesignTimeDbContextFactory which can then read connection string from appsettings.Development.json. |
Currently, when working on a project with multiple
appsettings.{environment}.json
files, there is no way to add a migration or update the database while pointing to a particular profile.So say I have a project with two the appsetting files below. When I try to add a migration or update the database after the fact, there is no way for me to tell the CLI where to look at.
So let's say I have appsettings.Production.json:
and I have appsettings.Development.json:
Similar to how
dotnet run
has a launch profile option, it would be really useful to have that option on theef migrations add
andef migrations update
commandsThe text was updated successfully, but these errors were encountered: