Availability Checker #1464 #865

This commit is contained in:
Jamie.Rees 2017-08-24 16:15:39 +01:00
parent 9ed6fd09a4
commit 385d206287
24 changed files with 255 additions and 82 deletions

View file

@ -45,6 +45,16 @@ namespace Ombi.Store.Context
optionsBuilder.UseSqlite("Data Source=Ombi.db");
}
protected override void OnModelCreating(ModelBuilder builder)
{
builder.Entity<PlexEpisode>()
.HasOne(p => p.Series)
.WithMany(b => b.Episodes)
.HasPrincipalKey(x => x.Key)
.HasForeignKey(p => p.GrandparentKey);
base.OnModelCreating(builder);
}
public void Seed()
{