diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2023-10-19 01:45:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-19 01:45:42 -0400 |
| commit | 8859a3ac8ea44f1a53668e0a7522cf4c875c4be8 (patch) | |
| tree | edc6ad0f1f241c2c3c2cdba5359d4d3006636d33 /Jellyfin.Server.Implementations/ModelConfiguration/TrickplayInfoConfiguration.cs | |
| parent | de08d38a6f2a6e773fa1000574e08322605b56d3 (diff) | |
| parent | 6b94d55e1ef7ca95e0ddc2a88b0ff0fd63d630a9 (diff) | |
Merge pull request #9554 from nicknsy/trickplay
Diffstat (limited to 'Jellyfin.Server.Implementations/ModelConfiguration/TrickplayInfoConfiguration.cs')
| -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 }); + } + } +} |
