Using a LocalDb MDF file on Azure

前端 未结 2 624
花落未央
花落未央 2020-12-08 06:49

I am developing an ASP.NET MVC website, which I want to host on Azure Websites. While in development, I have been using an MDF file in my App_Data directory with a connectio

2条回答
  •  Happy的楠姐
    2020-12-08 06:55

    You'll have to use SQL Azure to use the Websites/Cloud Service features.

    If you haven't already you'll probably want to have a look at web.config transformations with web deploy to ease the publishing experience.

    http://msdn.microsoft.com/en-us/library/dd465318(v=vs.100).aspx

    http://www.hanselman.com/blog/TinyHappyFeatures3PublishingImprovementsChainedConfigTransformsAndDeployingASPNETAppsFromTheCommandLine.aspx

    You can import your data into the SQL Azure DB via the management tools or if you're using SQL Server 2012 you can import/export data via the portal.

提交回复
热议问题