Background Prefetching for Kavita+ (#2707)

This commit is contained in:
Joe Milazzo 2024-02-10 09:43:17 -06:00 committed by GitHub
parent f616b99585
commit 5dc5029a75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 3300 additions and 100 deletions

View file

@ -1,8 +1,11 @@
using System.Collections.Generic;
using API.Services.Plus;
using Microsoft.EntityFrameworkCore;
namespace API.Entities.Metadata;
[Index(nameof(SeriesId), IsUnique = false)]
public class ExternalRecommendation
{
public int Id { get; set; }
@ -19,7 +22,7 @@ public class ExternalRecommendation
/// When null, represents an external series. When set, it is a Series
/// </summary>
public int? SeriesId { get; set; }
public virtual Series Series { get; set; }
//public virtual Series? Series { get; set; }
// Relationships
public ICollection<ExternalSeriesMetadata> ExternalSeriesMetadatas { get; set; } = null!;