示例#1
0
 public void ClearChangeLogs()
 {
     using (var dataContext = new TVItemsDataContext(_connectionString))
     {
         dataContext.ExecuteCommand("TRUNCATE TABLE ChangeLogs");
     }
 }
示例#2
0
 public void Delete(int itemNumber)
 {
     using (var dataContext = new TVItemsDataContext(_connectionString))
     {
         dataContext.ExecuteCommand("DELETE FROM TVItems WHERE ItemNumber = {0}", itemNumber);
     }
 }