title: entity framework not finding connection string
body: <p>I'm having an issue with a website I'm building. I can get data to show on the screen without a problem, but when I have the site write back to the database I get the following error:</p>
  
  <p>No connection string named 'MyApplication' could be found in the application config file.</p>
  
  <p>So I did some searching and found that should help if I change this:</p>
  
  <pre><code>    public TP90Entities()
          : base("name=TP90Entities")
      {
      }
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>    public TP90Entities()
          : base("TP90Entities")
      {
      }
  </code></pre>
  
  <p>If I do that I get the following error:</p>
  
  <blockquote>
    <p>Code generated using the T4 templates for Database First and Model First development may not work correctly if used in Code First mode. To continue using Database First or Model First ensure that the Entity Framework connection string is specified in the config file of executing application. To use these classes, that were generated from Database First or Model First, with Code First add any additional configuration using attributes or the DbModelBuilder API and then remove the code that throws this exception.</p>
  </blockquote>
  
  <p>I've rebuild the data connection several times trying to follow the database first method. Also I've upgraded the project to Entity Framework 5. 
  Can someone tell me what I'm doing wrong?</p>