示例#1
0
 public void Rate(Rating rating)
 {
     using (var context = new ReversiDBContext())
     {
         context.Ratings.Add(rating);
         context.SaveChanges();
     }
 }
示例#2
0
 public void AddScore(Score score)
 {
     using (var context = new ReversiDBContext())
     {
         context.Scores.Add(score);
         context.SaveChanges();
     }
 }