public void AddPlayer(Player player) { using (var context = new BasketballDataContext()) { context.Players.InsertOnSubmit(player); context.SubmitChanges(); } }
public void AddMember(Member member) { using (var context = new BasketballDataContext()) { context.Members.InsertOnSubmit(member); context.SubmitChanges(); } }
public void AddGame(Game game) { using (var context = new BasketballDataContext()) { context.Games.InsertOnSubmit(game); context.SubmitChanges(); } }