// public IEnumerable<Person> GetPersonsNamedRoberto(){ // return _connection.Table<Person>().Where(x => x.Name == "Roberto"); // } // // public Person GetJohnny(){ // return _connection.Table<Person>().Where(x => x.Name == "Johnny").FirstOrDefault(); // } public topScores CreateTopScore(string name, int score) { var ts = new topScores { name = name, score = score, }; _connection.Insert(ts); return(ts); }
public void deleteTopScore(topScores todel) { _connection.Delete(todel); }