asp.net - How can I implement a local testing database for my Azure Website? -


i have website i'm developing uses sql azure database. want able test website using database locally hosted on debugging machine designer can work on style , content without having deal overhead of firing azure emulator , communicating external service in areas no-connectivity.

i imagine possible extract .sql scripts create database , execute them every test run, seems tedious. i'm not sure best way configure these deployment details in order switch between development, , published configurations. i'm new web-developer cutting teeth on rather large project.

using asp.net mvc4 , have mssql 2012 installed it's worth.

you can export sql azure database .bacpac format , import sql server database. create tables , fill data. don't need on every test run, once , have proper database debug needs.

switching between debug , release (or can rename if want, e.g. local , production) configurations , using different web.config (or config transformations) way work different settings.

if want store db scripts (db structure or data) in vcs - can use entity framework migrations (new fancy way) or separate project of "sql server database" type (old school proven way :) ).

also ef migrations allows recreate db (with different name) on each run (for unit testing purposes. , can use sql express file instance (keep in mind it's local work, designer wont able access sql express instances afaik)


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

java - Jtable duplicate Rows -

java - Run a .jar on Heroku -