示例#1
0
 public void RemoveAllCatalogs()
 {
     using (LinqToSqlDataContext dataContext = new LinqToSqlDataContext())
     {
         dataContext.ExecuteCommand(@"DELETE FROM Catalogs;");
     }
 }
示例#2
0
 public void RemoveAllEvents()
 {
     using (LinqToSqlDataContext dataContext = new LinqToSqlDataContext())
     {
         dataContext.ExecuteCommand(@"DELETE FROM LibraryEvents;");
     }
 }