コード例 #1
0
 public void SetCompleted(int taskId)
 {
     using (var context = new RealTimeTasksDataContext(_connectionString))
     {
         context.ExecuteCommand("UPDATE TaskItems SET IsCompleted = 1 WHERE Id = {0}",
                                taskId);
     }
 }
コード例 #2
0
 public void SetDoing(int taskId, int userId)
 {
     using (var context = new RealTimeTasksDataContext(_connectionString))
     {
         context.ExecuteCommand("UPDATE TaskItems SET HandledBy = {0} WHERE Id = {1}",
                                userId, taskId);
     }
 }