Files
ersatztv/ErsatzTV.Infrastructure/Data/Configurations/Library/JellyfinLibraryConfiguration.cs
T
Jason DoveandGitHub 404ea49e35 jellyfin and emby path infos (#771)
* 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
2022-04-29 15:07:17 -05:00

18 lines
509 B
C#

using ErsatzTV.Core.Domain;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace ErsatzTV.Infrastructure.Data.Configurations;
public class JellyfinLibraryConfiguration : IEntityTypeConfiguration<JellyfinLibrary>
{
public void Configure(EntityTypeBuilder<JellyfinLibrary> builder)
{
builder.ToTable("JellyfinLibrary");
builder.HasMany(l => l.PathInfos)
.WithOne()
.OnDelete(DeleteBehavior.Cascade);
}
}