title: How do you read from a local SQLite file with .NET Core?
body: <p>I need to be able to read some data from a local SQLite DB file and I need the solution to work within the .NET Core 2.x framework - I'll be compiling this app cross-platform. So minimal dependencies is preferable!</p>
  
  <p>Libraries I've looked at:</p>
  
  <p><strong>Microsoft.EntityFrameworkCore.Sqlite.Core</strong></p>
  
  <p>However on trying to use it I get the following error when I try to <code>Open()</code> a connection:</p>
  
  <pre><code>System.AggregateException: 'One or more errors occurred. 
  (You need to call SQLitePCL.raw.SetProvider().  
  If you are using a bundle package, this is done by calling SQLitePCL.Batteries.Init().)'
  </code></pre>
  
  <p><strong>System.Data.SqlClient</strong></p>
  
  <p>Seems to have native stuff under it? IE hard to make cross platform.</p>