AttachmentStreamInfoConfiguration.cs 545 B

1234567891011121314151617
  1. using Jellyfin.Data.Entities;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Metadata.Builders;
  4. namespace Jellyfin.Server.Implementations.ModelConfiguration;
  5. /// <summary>
  6. /// FluentAPI configuration for the AttachmentStreamInfo entity.
  7. /// </summary>
  8. public class AttachmentStreamInfoConfiguration : IEntityTypeConfiguration<AttachmentStreamInfo>
  9. {
  10. /// <inheritdoc/>
  11. public void Configure(EntityTypeBuilder<AttachmentStreamInfo> builder)
  12. {
  13. builder.HasKey(e => new { e.ItemId, e.Index });
  14. }
  15. }