Ejemplo n.º 1
0
 public void SetTaskCompleted(int taskId)
 {
     using (var context = new TasksDataContext(_connectionString))
     {
         context.ExecuteCommand("UPDATE Tasks SET Completed = 1 where Id = {0}", taskId);
     }
 }
Ejemplo n.º 2
0
 public void SetUserForTask(int taskId, int userId)
 {
     using (var context = new TasksDataContext(_connectionString))
     {
         context.ExecuteCommand("UPDATE Tasks SET UserId = {1} where Id = {0}", taskId, userId);
     }
 }