title: Changing the Name of the Connection String that Entity Framework Uses
body: <p>How do you change the name of the connection string that Entity Framework models are bound to by default?</p>
  
  <p>Let's say I create an Entity Framework data model named "Model1.edmx" by pointing it to a databased named "MyDb" and picking some objects to map using the Visual Studio add new item wizard. The EF model is in a class library project, so when the wizard completed, it automatically added a connection string named "MyDbEntities" to the App.Config file for the project. My model references this connection string by default. </p>
  
  <p>I know I can pass in a connection string to a constructor for my model's object context, but how can I change the name of the default connection string?</p>
  
  <p>I'm using VS 2010 Beta 2.</p>