Unable to post multiple DbContext update scripts to Azure with project RRS feed

  • Question

  • User1542485260 posted

    I'm trying to publish a MVC6 EF7 project to Azure using VS2015. The project contains 2 DB Contexts: ApplicationDbContext (containing Identity info) and BaseDbContext (containing my project specific schema). I've used the dnx ef migrations tool to enable data scripting. Package Manager Console enable-migrations no longer works? When I publish the project to Azure using the new Publish Web tool, I don't see the Databases section on the wizard. How do I tell the system to point to an existing Azure database? After publishing the site comes up but when I hit a page that uses BaseDbContext, I get an error. I am able to register using ApplicationDbContext. My questions:

    How to I tell the system to run script to instantiate BaseDbContext data structure?

    How do I change the Azure database the system points to?

    What happened to the old Package Manager Console "enable-migrations"? Is there something I need to do to reenable?

    Tuesday, May 3, 2016 11:48 AM

All replies

  • User587237524 posted

    Hi Dannydonut,

    Could you please point out how to reproduce the issue? We could not help if there is not enough information.


    Thursday, May 5, 2016 1:38 PM