title: How to use connection string from appsettings.json on DAL layer project
body: <p>In vs.net I have multiple project in one solution, webApplication is startup project (asp.net core 2.1) and DataAccess project (Class library .net framework 4.6), I copied connection string from app.config (DataAccess project) to appsettings.json in webApplication but on access DB error ocurred:
   No connection string named 'Hemmat_Entities' could be found in the application config file.</p>
  
  <p>app.config in DAL project:      </p>
  
  <pre><code> &lt;connectionStrings&gt;
        &lt;add name="Hemmat_Entities" connectionString="metadata..."
   &lt;/connectionStrings&gt; 
  </code></pre>
  
  <p>appsettings in asp.net core is:</p>
  
  <pre><code>{
    "AllowedHosts": "*",
    "ConnectionStrings": {
      "Hemmat_Entities": "data source=.;initial 
             catalog=hemmat_new;integrated 
               security=True;multipleactiveresultsets=True;application 
               name=EntityFramework&amp;quot;"
    },
    "Logging": {
      "LogLevel": {
        "Default": "Warning"
      }
    }
  }
  </code></pre>