Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.DBContext.Notes.Where(n => n.ID == selectedNote.ID).Load();
- this.notesBox.DataContext = this.DBContext.Notes.Local;
- this.DBContext.Local.Notes.Remove(selectedNote);
- this.notesBox.DataContext = this.DBContext.Notes.Local;
- var collection = new ObservableCollection<Note>(this.DBContext.Notes.Where(n => n.ID == selectedNote.ID));
- this.notesBox.DataContext = collection;
Add Comment
Please, Sign In to add comment