Example #1
0
 public void AddFoosballGameDetails(FoosballGameDetails game)
 {
     using (var db = new LiteDatabase(_dbName))
     {
         var collection = db.GetCollection <FoosballGameDetails>(_detailsCollection);
         collection.EnsureIndex(x => x.Id);
         collection.Insert(game);
     }
 }
Example #2
0
 public void AddFoosballGameDetails(FoosballGameDetails game)
 {
     _details.Add(game);
 }