protected override void OnStart() { if (!File.Exists(DbPath)) { Helpers.UnzipFile(ZippedDbPath, DbPath); } if (File.Exists(DbPath)) { SQLitePCL.Batteries_V2.Init(); MainPage = new MainPage(); using (var context = new DrosDbContext()) { Debug.WriteLine(context.Authors.FirstOrDefault().Name); } } }
public DataStore() { _context = new DrosDbContext(); }