Files
ersatztv/ErsatzTV.Infrastructure/Data/Configurations/Library/EmbyLibraryConfiguration.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
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);
}
}