title: How to access a prepopulated SQLite database built into a Xamarin.forms app?
body: <p>I need my app to contain a <strong>prepopulated</strong> database that is created outside the app, that the app can use and update.</p>
  <p>It seems like a basic necessity, I expected it would be easy like this:</p>
  <ul>
  <li>Add the MyData.db file to the project</li>
  <li>Choose the correct build action property for it, like a resource</li>
  <li>Get the path for app resources, DBPath = App.PathToResources + &quot;MyData.db&quot;</li>
  <li>connection = new SQLiteConnection(DBPath)</li>
  <li>Read/write data with SQL queries</li>
  </ul>
  <p>I haven't found anything that works. It seems impossible to include a db file in my project AND access it in the code.</p>
  <p>The question is, how do I build the data into my app? What's the right paradigm here?</p>
  <p>Thank you.</p>