Using a LocalDb MDF file on Azure

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Using a LocalDb MDF file on Azure

Message par ForumBot »

Using a LocalDb MDF file on Azure
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Using a LocalDb MDF file on Azure

Message par ForumBot »

You can't use an .mdf file in App_Data, but you aren't forced to SQL Azure -- you can use SQL Server Compact. Deployment from LocalDB to Compact is easy if you are using Code First Migrations; otherwise you will have to migrate to SQL Server Compact before you deploy. If you decide to go with Compact you'll have to make sure the database engine gets deployed, and you can find instructions for that in this tutorial:

[http://www.asp.net/mvc/tutorials/deployment/deployment-to-a-hosting-provider/deployment-to-a-hosting-provider-deploying-sql-server-compact-databases-2-of-12](http://www.asp.net/mvc/tutorials/deployment/deployment-to-a-hosting-provider/deployment-to-a-hosting-provider-deploying-sql-server-compact-databases-2-of-12)
Répondre

Revenir à « Azure Infrastructure »