Ejemplo n.º 1
0
        public PersonRepository()
        {
            ISQLite sqlService = DependencyService.Get <ISQLite> ();

            if (sqlService.DatabaseExists() == false || sqlService.TableExists("Person") == false)
            {
                using (SQLiteConnection con = DependencyService.Get <ISQLite> ().GetConnection()) {
                    con.CreateTable <Person> ();
                }
            }
        }