Look ma, history!

This commit is contained in:
Mark McDowall 2013-05-10 15:33:04 -07:00
commit d320c2b6a9
12 changed files with 62 additions and 56 deletions

View file

@ -39,9 +39,11 @@ 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);
.Relationships
.AutoMapICollectionOrComplexProperties();
// .Relationship();
// .HasOne(h => h.Episode, h => h.EpisodeId)
// .HasOne(h => h.Series, h => h.SeriesId);
Mapper.Entity<Series>().RegisterModel("Series")
.Ignore(s => s.Path)