title: ConnectionString from appsettings.json in Data Tier with Entity Framework Core
body: <p>I have a new application that I am building on ASP.NET Core with Entity Framework Core. The application has a UI, model, business, and data tier. In previous versions of ASP.NET, you could set the connection string in the web.config and it would be available in referenced tiers by default. This does not appear to be the same case in ASP.NET Core with appsettings.json (or other config options)? Any idea on how this is accomplished? I have the dbcontext configured in the data layer, but I am current hard-coding the connection string.</p>
  
  <p>All examples I have see out there has the dbcontext configured in the UI layer in startup.cs. This is what I am trying to avoid. </p>
  
  <p>The question <a href="https://stackoverflow.com/questions/36831774/arranging-dotnet-core-app-for-3-tiers-with-data-access-layer">Here</a> got off topic. </p>