Example #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();
 }
Example #2
0
 private static void clearAnnotations(table1Entities db)
 {
     db.Annotations.ToList().ForEach(i => db.DeleteObject(i));
     db.SaveChanges();
 }