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