mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-25 00:22:28 -04:00
Handling related data in the collection delete
This commit is contained in:
@@ -19,6 +19,14 @@ namespace Kyoo.Models
|
||||
get => Links.Select(x => x.Show);
|
||||
set => Links = value.Select(x => new CollectionLink(this, x));
|
||||
}
|
||||
|
||||
[NotMergable] [JsonIgnore] public virtual IEnumerable<LibraryLink> LibraryLinks { get; set; }
|
||||
|
||||
[NotMergable] [JsonIgnore] public IEnumerable<Library> Libraries
|
||||
{
|
||||
get => LibraryLinks?.Select(x => x.Library);
|
||||
set => LibraryLinks = value?.Select(x => new LibraryLink(x, this));
|
||||
}
|
||||
|
||||
public Collection() { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user