* add actor metadata * show actors in ui * get full movie/show metadata from plex * store actor thumbnail url * rework movie detail page * metadata fixes * rework show detail page * rework artist page * code cleanup
23 lines
675 B
C#
23 lines
675 B
C#
using ErsatzTV.Core.Domain;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace ErsatzTV.Infrastructure.Data.Configurations
|
|
{
|
|
public class EpisodeMetadataConfiguration : IEntityTypeConfiguration<EpisodeMetadata>
|
|
{
|
|
public void Configure(EntityTypeBuilder<EpisodeMetadata> builder)
|
|
{
|
|
builder.ToTable("EpisodeMetadata");
|
|
|
|
builder.HasMany(em => em.Artwork)
|
|
.WithOne()
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
builder.HasMany(em => em.Actors)
|
|
.WithOne()
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
}
|
|
}
|
|
}
|