title: SQLite Error 14: 'unable to open database file' with EF Core code first
body: <p>I am getting an</p>
  
  <p>SQLite Error 14: 'unable to open database file'</p>
  
  <p>with EF Core code first, no idea why. I worked fine the first time, the database file got created in c:\users\username\AppData\Local\Packages\PackageId\LocalState.</p>
  
  <p>Then I deleted the database file and the code first migration and ModelSnapshot classes and created a new migration (I am calling DbContext.Database.Migrate() on app start to automatically execute them). Now the database cannot be created again.</p>