title: ConnectionString with DAPPER ORM not working
body: <p>I created following Repository file </p>
  
  <pre><code>using Dapper;
  using System.Configuration;
  
  namespace ProjectName.Repository
  {
      public class SMRTRepository : IDashboard
      {
          public SqlConnection con;
          //To Handle connection related activities
          private void connection()
          {
              string constr = ConfigurationManager.ConnectionStrings["ConnectionString"].ToString();
              con = new SqlConnection(constr);
          }
  
          .........
      }
  }
  </code></pre>
  
  <p>Then In that project created a App.Config File to define connection string, </p>
  
  <p><strong>App.config</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;connectionStrings&gt;
      &lt;add name="ConnectionString" connectionString="Data Source=USER-PC;Initial Catalog=DBNAME;User ID=sa;Password=****;Integrated Security=True;" providerName="System.Data.sqlclient"/&gt;
    &lt;/connectionStrings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>but then when I run this , its not connecting to DB , In Server Explorer window in Visual Studio I can see connection string connecting to DB without Red icon </p>
  
  <p>whats wrong in my approach </p>