fix ef shared table warnings (#480)
This commit is contained in:
@@ -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)
|
||||
|
||||
+2
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user