Answer the question
In order to leave comments, you need to log in
How to work with code second when changing the site database to ASP.NET MVC, if the site is hosted in MS Azure, and the publication is from VS Online?
Good afternoon,
I have the following configuration:
-ASP.NET MVC site with a code first database.
-Visual Studio 2013 Community IDE is linked to a Visual Studio Online account -VS
Online is versioned via TFVC (not Git)
-Hosted on Azure Web Apps. The publishing mechanism is automatic when Check-In changes and create a new version in VS Online (that is, the Azure account is also associated with VS Online).
Now a question. If I decide to make changes to the database structure using the code first method (that is, it will already be code second) and do a Check-IN, a new version will be created in VS Online and, in theory, the changes should be uploaded to Azure. What will happen to the database that is already in Azure, will it be completely overwritten or what? At what point will this happen? Immediately when the changes are loaded, or after the first access to the site by the user from the browser?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
about code second, it will still be code first, code first, this is first a model in classes, then a base, code second is first a model or database, and then class code generation from them.
for your question
https://msdn.microsoft.com/en-us/data/jj591621.aspx
https://msdn.microsoft.com/en-us/data/jj554735.aspx
www.asp.net/mvc/overview /getting-started/getting-s...
www.entityframeworktutorial.net/code-first/automat...
https://ilmatte.wordpress.com/2012/12/05/entity-fr...
https:/ /www.google.ru/search?q=entity+framework+da...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question