diff options
| author | Nick <20588554+nicknsy@users.noreply.github.com> | 2023-06-26 17:40:10 -0700 |
|---|---|---|
| committer | Nick <20588554+nicknsy@users.noreply.github.com> | 2023-06-26 17:40:10 -0700 |
| commit | ab20ceaad65b2e72fe6e823aa6086e2c6ac36844 (patch) | |
| tree | 1d44d299780ad2433c4b84b93487be8701f3ce90 /Jellyfin.Server.Implementations/ModelConfiguration | |
| parent | a2a144869d38b295fac0c3ab5bf0ee66b84e4eb0 (diff) | |
Migrate to trickplay table to EF. Rename vars/methods/members to have consistent use of tile and thumbnail
Diffstat (limited to 'Jellyfin.Server.Implementations/ModelConfiguration')
| -rw-r--r-- | Jellyfin.Server.Implementations/ModelConfiguration/TrickplayInfoConfiguration.cs | 18 |
1 files changed, 18 insertions, 0 deletions
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 +{ + /// <summary> + /// FluentAPI configuration for the TrickplayInfo entity. + /// </summary> + public class TrickplayInfoConfiguration : IEntityTypeConfiguration<TrickplayInfo> + { + /// <inheritdoc/> + public void Configure(EntityTypeBuilder<TrickplayInfo> builder) + { + builder.HasKey(info => new { info.ItemId, info.Width }); + } + } +} |
