fix ef shared table warnings (#480)

This commit is contained in:
Jason Dove
2021-11-10 18:03:28 -06:00
committed by GitHub
parent c0aad028a8
commit f1356563da
2 changed files with 4 additions and 3 deletions
@@ -15,7 +15,8 @@ namespace ErsatzTV.Infrastructure.Data.Configurations
.HasForeignKey(pi => pi.PlayoutId)
.OnDelete(DeleteBehavior.Cascade);
builder.OwnsOne(c => c.Anchor);
builder.OwnsOne(p => p.Anchor);
builder.Navigation(p => p.Anchor).IsRequired();
builder.HasMany(p => p.ProgramScheduleAnchors)
.WithOne(a => a.Playout)
@@ -10,8 +10,8 @@ namespace ErsatzTV.Infrastructure.Data.Configurations
{
builder.ToTable("PlayoutProgramScheduleAnchor");
builder.OwnsOne(a => a.EnumeratorState)
.WithOwner();
builder.OwnsOne(a => a.EnumeratorState);
builder.Navigation(a => a.EnumeratorState).IsRequired();
builder.HasOne(i => i.Collection)
.WithMany()