Entity Framework 6.0 Code First Migrations to Azure SQL DB not working.

asp.net-mvc azure ef-migrations entity-framework

Question

Using this article as a guide, I'm attempting to build an ASP.NET MVC website. http://www.windowsazure.com/en-us/develop/net/tutorials/web-site-with-sql-database/

I was given the option to construct an ASP.NET MVC 5 site while using the VS2013 preview. Utilizing the subsequent packages also

Framework 6.0.0-rc1 for Entity

1.0.0-alpha1 of Microsoft.AspNet.Identity.Core

Microsoft.AspNet. 1.0.0-alpha1 of Identity.EntityFramework

I then carried out the following instructions in the package management console after configuring a website and connecting it to a database in Azure:

-ContextTypeName IdentityDbContext enable-migrations

initial add-migration

The site deployed successfully when I published to Azure with the database supplied and the "Execute Code First Migrations" checkbox checked, but when I checked my database, the migrations hadn't been executed. My prior migration attempts had been successful on a website running ASP.Net MVC 4 and EF 5.0.

Although I have no idea why, I would believe that the issue is that EF 6 is disregarded the connection string that is established during publishing.

We would appreciate any assistance. I'm grateful.

1
9
9/17/2013 6:29:08 AM

Accepted Answer

ZZZ_tmp
7
11/11/2013 11:09:18 PM

Popular Answer

ZZZ_tmp


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow