Adding history

This commit is contained in:
Mark McDowall 2013-05-02 23:53:32 -07:00
commit 7ab1084437
20 changed files with 289 additions and 7 deletions

View file

@ -38,9 +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);
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)