Example #1
0
        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);
                }
            }
        }
Example #2
0
 public DataStore()
 {
     _context = new DrosDbContext();
 }