asp.net - After web deploy from visual studio, do I need to run dotnet ef update database to perform migration? -


sorry if question bit long. couldn't figure out how phrase other way.

i deployed application google cloud via vs 2017 web deploy. , in settings tabs there section can specify database connection string apply database migration.

please let me know if wrong here though destination database migration applied to.

so have set same connection string database connection string runtime , clicked on deploy.

everything seems deployed without error messages. when launch application came error message described in link:

asp-net-core-deployment-to-iis-error-development-environment-should-not-be-enab

so followed instructions , when browse page, error message saying that

applying existing migrations applicationdbcontext may resolve issue

and see 'apply migrations ' blue button.

my question , have run migrations in command line after web deployment normally? or did go wrong preparation of deployment, configuration or else?

thanks!

my question is, have run migrations in command line after web deployment normally?

i think normal.

this page describes automatic migrations: https://msdn.microsoft.com/en-us/library/jj554735(v=vs.113).aspx

if understand correctly, it's visual studio migration, deployed application never able migration itself.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -