title: Get the connection string for Entity Framework using the POCO template
body: <p>I use Entity Framework and I need to get my connection string so I can construct a context.</p>
  
  <p>I am using the POCO template.  My context object has:</p>
  
  <pre><code>string ConnectionString = "name=MyAppConfigConnectionStringPropertyHere"
  </code></pre>
  
  <p>So when I try to just construct my context it says </p>
  
  <blockquote>
    <p>"The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid"</p>
  </blockquote>
  
  <p>I saw in this <a href="https://stackoverflow.com/questions/1888948/c-how-to-update-entity-model-connection-string/1889199#1889199">answer</a> that indicated that there is a GetConnectionString() method.  But googling has not lead me to the reference I need to add to get that method (it is not in my project by default).</p>
  
  <p>So, I can't think that I am the first one who wants to get a connection string for entity framework using the POCO templates.  How have others done this?  I guess I can just read in the whole app.config file and parse it out.  But it seems like it should not be that hard.</p>
  
  <p>Any hints would be great!</p>