title: Code-First change data source without connection string
body: <p>I seem to have an issue creating an MVC4 application where I have adopted the code-first approach to creating my models but no connection string seems to have been created in the web.config file.</p>
  
  <p>The constructed database seems to have been built on (localhost)\SQLEXPRESS instance but I would like to change this to an external data source. Without a connection string to update I'm not sure how to do this.</p>
  
  <p>Please could someone point me in the right direction?</p>
  
  <p><strong>EDIT: I found the following diagram which highlights what the answers have said pretty well</strong></p>
  
  <p><a href="https://i.stack.imgur.com/XSv1S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XSv1S.png" alt="EF DB Initialization Flowchart"></a><br>
  <sub>(source: <a href="http://www.entityframeworktutorial.net/images/codefirst/database-init-fg1.PNG" rel="nofollow noreferrer">entityframeworktutorial.net</a>)</sub>  </p>