コード例 #1
0
 public void UpdateOutput(Participant model)
 {
     using (DBLearningModel db = new DBLearningModel())
     {
         db.Entry(model).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
     }
 }
コード例 #2
0
 public Participant Insert(Participant model)
 {
     using (DBLearningModel db = new DBLearningModel())
     {
         db.Participant.Add(model);
         db.SaveChanges();
         return(model);
     }
 }