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