Net MVC3 application using VS2010 which allows to configure Database ConnectionString in tab as below
How ever my Hosting Server is not supporting it and force me to put connection string inside tab as below
How can i use ConnectionString of for MVC 3 Entity Framework Code First Model based applicaiton. Is it possible to put connection string inside tab and if its possible then how can i use it in my ASP.Net MVC3 Entity Framework Code First Model ?
Finaly after doing too much R&D i got success to deploy my MVC3 application on shared hosting server with Database connection properly working without any problem.I try to deploy my MVC3 application with Entity Framework Code First Model on shared hosting server but it don’t allow me as we do not have database creation and drop permission on shared hosting server. I try too much it should allow me to host my application with Entity Framework Code First but i can’t do id due to limited access permissions on shared hosting database server. Finaly i need to find some alternative and i try to deploy my MVC3 application with Entity Framework Database First Model. It will generate edmx file for your model class but you can update it to poco class using T4 template of ADO.Net DBContext Code Generator. Please watch Julie Lerman’s below video to get more idea about it.
http://msdn.microsoft.com/en-us/data/gg702905
Once you develop your application as shown in above video, Change your web.config settings with your hosting server database value in Connection string and publish your application and upload it on your FTP Server. You found it work without any problem.