示例#1
0
 public void UpdateStatus(int id, Status status)
 {
     using (var context = new Applicants_DataDataContext(_connectionstring))
     {
         context.ExecuteCommand("UPDATE Applicants SET Status = {0} WHERE Id = {1}", status, id);
     }
 }