mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-03 23:36:38 +01:00
This commit integrates remaining performance changes: - Add batch user data fetching in DtoService to reduce N+1 queries - Add GetNextUpEpisodesBatch in TVSeriesManager for efficient batch retrieval - Update Video/Movie/BoxSet to use LibraryManager for alternate versions - Transition LinkedChild to use ItemId instead of Path (obsolete Path/LibraryItemId) - Update providers and controllers for LinkedChildren-based references - Add NextUpEpisodeBatchResult for batched episode queries - Integrate IDescendantQueryProvider in SqliteDatabaseProvider
46 lines
1008 B
C#
46 lines
1008 B
C#
#nullable disable
|
|
|
|
#pragma warning disable CS1591
|
|
|
|
using System;
|
|
|
|
namespace MediaBrowser.Controller.Entities
|
|
{
|
|
public class LinkedChild
|
|
{
|
|
public LinkedChild()
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the path.
|
|
/// </summary>
|
|
[Obsolete("Use ItemId instead")]
|
|
public string Path { get; set; }
|
|
|
|
public LinkedChildType Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the library item id.
|
|
/// </summary>
|
|
[Obsolete("Use ItemId instead")]
|
|
public string LibraryItemId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the linked item id.
|
|
/// </summary>
|
|
public Guid? ItemId { get; set; }
|
|
|
|
public static LinkedChild Create(BaseItem item)
|
|
{
|
|
ArgumentNullException.ThrowIfNull(item);
|
|
|
|
return new LinkedChild
|
|
{
|
|
ItemId = item.Id,
|
|
Type = LinkedChildType.Manual
|
|
};
|
|
}
|
|
}
|
|
}
|