* start adding jellyfin path info; fix some scanning bugs * sync jellyfin libraries before scanning to ensure latest path infos * code cleanup * support emby path infos * fix periodic scanning of emby and jellyfin libraries * bug fixes
18 lines
493 B
C#
18 lines
493 B
C#
using ErsatzTV.Core.Domain;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace ErsatzTV.Infrastructure.Data.Configurations;
|
|
|
|
public class EmbyLibraryConfiguration : IEntityTypeConfiguration<EmbyLibrary>
|
|
{
|
|
public void Configure(EntityTypeBuilder<EmbyLibrary> builder)
|
|
{
|
|
builder.ToTable("EmbyLibrary");
|
|
|
|
builder.HasMany(l => l.PathInfos)
|
|
.WithOne()
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
}
|
|
}
|