Esempio n. 1
0
 private void ClearAnnotations_Click(object sender, RoutedEventArgs e)
 {
     db.Annotations.ToList().ForEach(i => db.DeleteObject(i));
     db.AnnotationTags.ToList().ForEach(i => db.DeleteObject(i));
     db.SaveChanges();
     loadAnnotations();
 }
Esempio n. 2
0
 private static void clearAnnotations(table1Entities db)
 {
     db.Annotations.ToList().ForEach(i => db.DeleteObject(i));
     db.SaveChanges();
 }