title: Providing connection string to an EF 5.0 model
body: <p>So I guess this is really simple, but for some reason I'm unable to find the answer. My problem is that I've before used EF 4.3.1 contexts that inherit from ObjectContext, and the autogeneration always created an overloaded constructor that accepted the connection string as a parameter.</p>
  
  <p>Now that I'm trying to switch to EF 5.0, I have to use the DbContext version. But MyEntities that is inherited from DbContext, has only the parameterless constructor available. I guess I could add the overloaded constructor myself, and make it call base(connectionString), but doing manual changes to the auto-generated file just seems like a risky business at best.</p>
  
  <p>So how can I create an instance of MyEntities that uses a connection string that I provide at runtime?</p>