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); } }
public void AddFoosballGameDetails(FoosballGameDetails game) { _details.Add(game); }