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