EpisodesWithFiles now returns the full series object, instead of just the SeriesTitle (So we don't need to add junk to the Episode class)

This commit is contained in:
Mark McDowall 2011-09-04 00:45:58 -07:00
commit 0a65e85e21
6 changed files with 46 additions and 30 deletions

View file

@ -53,15 +53,12 @@ namespace NzbDrone.Core.Repository
}
}
[Ignore]
[ResultColumn]
public Series Series { get; set; }
[ResultColumn]
public EpisodeFile EpisodeFile { get; set; }
[ResultColumn]
public string SeriesTitle { get; set; }
public override string ToString()
{
string seriesTitle = Series == null ? "[NULL]" : Series.Title;