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