title: How to connect with SQL Server database using .NET Core Class Library (.NET Standard)?
body: <p>I have just started to create an ASP.NET Core Web API Project. I am not much aware of "ASP.NET Core .NET Standard Library". </p>
  
  <p>I am creating this application using Visual Studio 2017 RC and in the application, I have taken a project of type Class Library (.NET Standard) at repository layer.</p>
  
  <p>Following is the screenshot for the same:</p>
  
  <p><a href="https://i.stack.imgur.com/oEQgN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/oEQgN.png" alt="enter image description here"></a></p>
  
  <p>Now from repository Layer I want to connect to the database. I have created a variable </p>
  
  <pre><code>IDbConnection con;
  </code></pre>
  
  <p>Now I am trying to add reference of <strong><em>System.Data</em></strong> but I am unable to add any reference because when I am opening the add reference window then I am getting the following message:</p>
  
  <blockquote>
    <p><em>No Framework assemblies were found on the machine.</em></p>
  </blockquote>
  
  <p>How can I connect to database using .NET Core Class Library(.NET Standard)?</p>
  
  <p><a href="https://i.stack.imgur.com/eGf7s.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eGf7s.png" alt="enter image description here"></a></p>