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