-
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
In RC2 how to update database on product. #5509
Comments
@chinaq are you using the |
Thanks @rowanmiller. I published by the wizard to apply migrations to the target database, but it comes another problem. Because my website and the repo are in different projects and assembles, it causes
The context is in the repo assemble How can I solve this?Thanks. |
You probably have to wait until #5320 will be resolved. |
@leak is correct, this is due to #5320 which is a limitation we are working to remove for the next release. In the meantime, the best workaround is to revert to applying migrations in using (var context = new MyContext(app.ApplicationServices.GetRequiredService<DbContextOptions<MyContext>>()))
{
context.Database.Migrate();
} |
The issue
In RC1 when I published a website, it generated a ef.cmd file, I can ran
ef database update
to update the product database. How can I do it in RC2 when there is no ef.cmd file.The text was updated successfully, but these errors were encountered: