2010-10-08 03:35:04 +00:00
|
|
|
|
using System.Collections.Generic;
|
2010-09-28 20:44:33 +00:00
|
|
|
|
using SubSonic.SqlGeneration.Schema;
|
|
|
|
|
|
2010-10-08 03:35:04 +00:00
|
|
|
|
namespace NzbDrone.Core.Entities
|
2010-09-28 20:44:33 +00:00
|
|
|
|
{
|
|
|
|
|
public class Season
|
|
|
|
|
{
|
2010-10-01 00:09:22 +00:00
|
|
|
|
[SubSonicPrimaryKey(false)]
|
2010-10-05 06:21:18 +00:00
|
|
|
|
public virtual long SeasonId { get; set; }
|
2010-09-28 20:44:33 +00:00
|
|
|
|
public long SeriesId { get; set; }
|
|
|
|
|
public int SeasonNumber { get; set; }
|
|
|
|
|
public bool Monitored { get; set; }
|
|
|
|
|
public string Folder { get; set; }
|
2010-10-01 00:09:22 +00:00
|
|
|
|
|
|
|
|
|
[SubSonicToManyRelation]
|
2010-10-08 03:35:04 +00:00
|
|
|
|
public virtual List<Episode.BasicEpisode> Episodes { get; private set; }
|
2010-10-01 00:09:22 +00:00
|
|
|
|
|
|
|
|
|
[SubSonicToOneRelation(ThisClassContainsJoinKey = true)]
|
2010-10-05 06:21:18 +00:00
|
|
|
|
public virtual Series Series { get; private set; }
|
2010-09-28 20:44:33 +00:00
|
|
|
|
}
|
|
|
|
|
}
|