I am learning MVC4 from http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/accessing-your-models-data-from-a-controller (edit: Fixed URL)
Everything is working perfectly but my database isn't getting updated but when I run the project the records are coming from somewhere and I couldn't find that database in my MSSQL.
My connection string in web.config is
<connectionStrings>
<add name="PurchaseInfosDbContext"
connectionString="server=lakpa-pc;Integrated Security=SSPI; User ID=sa; Password=xxxxx; database=MessInfo" providerName="System.Data.SqlClient" />
</connectionStrings>
but in the Visual studio when I debug I get the connection string as
"Data Source=.\\SQLEXPRESS;Initial Catalog=Mvc4Projects.Models.ItemsDetailsDbContext;Integrated Security=True;MultipleActiveResultSets=True"
Isn't it supposed to read the connection string from web.config. I haven't modified any connection string on any pages.
a. Is it necessary to include SDF file as shown in that tutorial? Can't I directly update it to mdf file?