示例#1
0
//		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);
    }
示例#2
0
 public void deleteTopScore(topScores todel)
 {
     _connection.Delete(todel);
 }