0

I've worked on ASP.NET MVC site using Entity Framework code first approach. I've finished my initial website and uploaded it to Windows Azure.

Now, I wish to continue developing the site and enhance the database structure. The problem is that because it was created as code-first when I'll modify my entities - the database will re-created so my data will be lost.

My questions is - how can I get the live data from windows azure back to my local machine (registered accounts, posts etc.) and how can I continue developing my site without loosing that data. To be more specific - I wish to update the database structure in Azure to the new structure without losing the data inside it. I know about the entity framework DB strategics, but didn't saw anything that saves the data.

Thanks for your help!

4

1 回答 1

0

以下是从 SQL Azure 导出到 blob 存储的说明。 http://msdn.microsoft.com/en-us/library/windowsazure/hh335292.aspx#Export

正如 rjovic 所说,修改实体并不意味着丢失数据。您可以使用代码优先迁移将数据从旧实体移动到新实体。

于 2012-08-24T16:57:41.727 回答