public void RemoveAllCatalogs() { using (LinqToSqlDataContext dataContext = new LinqToSqlDataContext()) { dataContext.ExecuteCommand(@"DELETE FROM Catalogs;"); } }
public void RemoveAllEvents() { using (LinqToSqlDataContext dataContext = new LinqToSqlDataContext()) { dataContext.ExecuteCommand(@"DELETE FROM LibraryEvents;"); } }