Omit BoxSet related materialization

This commit is contained in:
Shadowghost
2026-05-03 13:26:30 +02:00
parent 0183127d2a
commit 00b08c0b32
3 changed files with 37 additions and 38 deletions

View File

@@ -78,6 +78,19 @@ public interface IItemQueryHelpers
InternalItemsQuery filter,
Guid ancestorId);
/// <summary>
/// Builds an <see cref="IQueryable{Guid}"/> of folder IDs whose descendants are all played
/// for the given user. Composable into outer queries to avoid an extra DB roundtrip.
/// </summary>
/// <param name="context">The database context the resulting query is bound to.</param>
/// <param name="folderIds">A query yielding candidate folder IDs.</param>
/// <param name="user">The user for access filtering and played status.</param>
/// <returns>An <see cref="IQueryable{Guid}"/> of fully-played folder IDs.</returns>
IQueryable<Guid> GetFullyPlayedFolderIdsQuery(
JellyfinDbContext context,
IQueryable<Guid> folderIds,
User user);
/// <summary>
/// Deserializes a <see cref="BaseItemEntity"/> into a <see cref="BaseItem"/>.
/// </summary>