public void AddGame(Game game) { using (var context = new RepositoryDataContext(_connectionString)) { context.Games.InsertOnSubmit(game); context.SubmitChanges(); } }
public void AddNotify(NotifyMe notify) { using (var context = new RepositoryDataContext(_connectionString)) { context.NotifyMes.InsertOnSubmit(notify); context.SubmitChanges(); } }
public void AddPlayer(Player player) { using (var context = new RepositoryDataContext(_connectionString)) { context.Players.InsertOnSubmit(player); context.SubmitChanges(); } }