LazyLoaded Series and Episode again for history

This commit is contained in:
Mark McDowall 2013-05-03 00:28:02 -07:00
commit 68f93dbb10
3 changed files with 8 additions and 8 deletions

View file

@ -38,10 +38,10 @@ namespace NzbDrone.Core.Datastore
Mapper.Entity<SceneMapping>().RegisterModel("SceneMappings");
Mapper.Entity<History.History>().RegisterModel("History");
// .Relationship()
// .HasOne(h => h.Episode, h => h.EpisodeId)
// .HasOne(h => h.Series, h => h.SeriesId);
Mapper.Entity<History.History>().RegisterModel("History")
.Relationship()
.HasOne(h => h.Episode, h => h.EpisodeId)
.HasOne(h => h.Series, h => h.SeriesId);
Mapper.Entity<Series>().RegisterModel("Series")
.Ignore(s => s.Path)