title: Code first Entity framework connection string
body: <p>Am trying to follow this link  <a href="http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/accessing-your-model%27s-data-from-a-controller" rel="nofollow">http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/accessing-your-model%27s-data-from-a-controller</a> to get started. </p>
  
  <p>While creating Entity using code First approach , how can i create .mdf in VS. What should be my connection string ?</p>
  
  <p>my connectionstring</p>
  
  <pre><code>&lt;add name="MovieDBContext"
          connectionString="Data Source=|DataDirectory|Movies.mdf"
          providerName="System.Data.EntityClient"/&gt;
  </code></pre>
  
  <p>Am getting error in DataSource while creating controller. wat should the Data Source for .MDF ?</p>