mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			667 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			667 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System;
 | 
						|
using System.Linq;
 | 
						|
using Jellyfin.Data.Entities;
 | 
						|
using MediaBrowser.Model.Entities;
 | 
						|
using Microsoft.EntityFrameworkCore;
 | 
						|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
 | 
						|
using SQLitePCL;
 | 
						|
 | 
						|
namespace Jellyfin.Server.Implementations.ModelConfiguration;
 | 
						|
 | 
						|
/// <summary>
 | 
						|
/// Provides configuration for the BaseItemMetadataField entity.
 | 
						|
/// </summary>
 | 
						|
public class BaseItemMetadataFieldConfiguration : IEntityTypeConfiguration<BaseItemMetadataField>
 | 
						|
{
 | 
						|
    /// <inheritdoc/>
 | 
						|
    public void Configure(EntityTypeBuilder<BaseItemMetadataField> builder)
 | 
						|
    {
 | 
						|
        builder.HasKey(e => new { e.Id, e.ItemId });
 | 
						|
        builder.HasOne(e => e.Item);
 | 
						|
    }
 | 
						|
}
 |