Guest User

Untitled

a guest
Jan 17th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. this.DBContext.Notes.Where(n => n.ID == selectedNote.ID).Load();
  2. this.notesBox.DataContext = this.DBContext.Notes.Local;
  3.  
  4. this.DBContext.Local.Notes.Remove(selectedNote);
  5. this.notesBox.DataContext = this.DBContext.Notes.Local;
  6.  
  7. var collection = new ObservableCollection<Note>(this.DBContext.Notes.Where(n => n.ID == selectedNote.ID));
  8. this.notesBox.DataContext = collection;
Add Comment
Please, Sign In to add comment