示例#1
0
 public void UpdateTask(tbl_task newTaskDetails)
 {
     using (dbContext = new ProjectManagerConnection())
     {
         dbContext.Entry(newTaskDetails).State = EntityState.Modified;
         dbContext.SaveChanges();
     }
 }
示例#2
0
 public void CreateTask(tbl_task newTaskDetails)
 {
     using (dbContext = new ProjectManagerConnection())
     {
         dbContext.tbl_task.Add(newTaskDetails);
         dbContext.SaveChanges();
     }
 }