Add migration to try and fix db for incorrect or missing espiode series entries.
This commit is contained in:
parent
984119c7ee
commit
1ae5f99bf0
6 changed files with 205 additions and 38 deletions
|
|
@ -44,6 +44,8 @@ namespace DataLayer
|
|||
|
||||
public static bool IsEpisodeParent(this Book book)
|
||||
=> book.ContentType is ContentType.Parent;
|
||||
|
||||
public static bool HasLiberated(this Book book)
|
||||
=> book.UserDefinedItem.BookStatus is LiberatedStatus.Liberated ||
|
||||
book.UserDefinedItem.PdfStatus is not null and LiberatedStatus.Liberated;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue