Reputation: 111
I am using VS2013 and Azure SDK 2.3, I have C# application developed in c# and DB hosted on azure cloud service, as I am new to azure I want to know that If I add any table in existing database hosted on azure through azure management portal then how I can get effect of that changes in my entity framework.
As this app is not developed fully by me so I don't know much about it's details.
Upvotes: 2
Views: 6743
Reputation: 1580
For Database first approach follow below steps to achieve your task.
Upvotes: 1
Reputation: 11990
When you add/modify some table in the production database, you have to update your application.
First thing to do is edit the web.config/app.config of the application, pointing the connection string to the production database (in your case, database in azure).
If you are using db-first, update the model from database.
If you are using code-first, it is better to make changes in your classes, and then update the database structure via data migrations. Otherwise, you might have some problems in the future updates, because the current database structure and the migration history will not match.
Update the application in the azure cloud service.
Upvotes: 0