Ejemplo n.º 1
0
        public App()
        {
            InitializeComponent();


            var conn = new SQLiteAsyncConnection(DependencyService.Get <IFileHelper>().GetLocalFilePath("db.sqlite"));

            conn.CreateTableAsync <Start>().GetAwaiter().GetResult();

            conn.InsertAsync(new Start {
                Time = DateTime.Now
            });

            MainPage = new SQLite.MainPage(conn);
        }
Ejemplo n.º 2
0
        public App()
        {
            InitializeComponent();

            MainPage = new SQLite.MainPage();
        }