From ab20ceaad65b2e72fe6e823aa6086e2c6ac36844 Mon Sep 17 00:00:00 2001
From: Nick <20588554+nicknsy@users.noreply.github.com>
Date: Mon, 26 Jun 2023 17:40:10 -0700
Subject: Migrate to trickplay table to EF. Rename vars/methods/members to have
consistent use of tile and thumbnail
---
.../ModelConfiguration/TrickplayInfoConfiguration.cs | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 Jellyfin.Server.Implementations/ModelConfiguration/TrickplayInfoConfiguration.cs
(limited to 'Jellyfin.Server.Implementations/ModelConfiguration/TrickplayInfoConfiguration.cs')
diff --git a/Jellyfin.Server.Implementations/ModelConfiguration/TrickplayInfoConfiguration.cs b/Jellyfin.Server.Implementations/ModelConfiguration/TrickplayInfoConfiguration.cs
new file mode 100644
index 000000000..dc1c17e5e
--- /dev/null
+++ b/Jellyfin.Server.Implementations/ModelConfiguration/TrickplayInfoConfiguration.cs
@@ -0,0 +1,18 @@
+using Jellyfin.Data.Entities;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Metadata.Builders;
+
+namespace Jellyfin.Server.Implementations.ModelConfiguration
+{
+ ///
+ /// FluentAPI configuration for the TrickplayInfo entity.
+ ///
+ public class TrickplayInfoConfiguration : IEntityTypeConfiguration
+ {
+ ///
+ public void Configure(EntityTypeBuilder builder)
+ {
+ builder.HasKey(info => new { info.ItemId, info.Width });
+ }
+ }
+}
--
cgit v1.2.3