mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-08-07 04:42:17 -04:00
Removing books
* message box is too big when removing huge amounts of books. This scenario is typical when removing podcasts * removing books should remove user defined entries. eg: tags and is-liberated
This commit is contained in:
1 parent
7c38e18435
commit
d2eaf26117
3 files changed
+11
-4
No files matched your search
@@ -192,6 +192,7 @@ namespace ApplicationServices
|
||||
|
||||
var removeLibraryBooks = libBooks.Where(lb => idsToRemove.Contains(lb.Book.AudibleProductId)).ToList();
|
||||
context.LibraryBooks.RemoveRange(removeLibraryBooks);
|
||||
context.Books.RemoveRange(removeLibraryBooks.Select(lb => lb.Book));
|
||||
|
||||
var qtyChanges = context.SaveChanges();
|
||||
if (qtyChanges > 0)
|
||||
|
||||
Reference in new issue
Block a user