2011-01-29 07:10:22 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2010-09-28 22:44:33 +02:00
|
|
|
|
using SubSonic.SqlGeneration.Schema;
|
|
|
|
|
|
2010-10-21 03:49:23 +02:00
|
|
|
|
namespace NzbDrone.Core.Repository
|
2010-09-28 22:44:33 +02:00
|
|
|
|
{
|
|
|
|
|
public class Season
|
|
|
|
|
{
|
2010-10-01 02:09:22 +02:00
|
|
|
|
[SubSonicPrimaryKey(false)]
|
2011-01-29 07:10:22 +01:00
|
|
|
|
public virtual int SeasonId { get; set; }
|
2011-04-10 04:44:01 +02:00
|
|
|
|
|
2011-03-31 03:42:27 +02:00
|
|
|
|
public virtual int SeriesId { get; set; }
|
|
|
|
|
public virtual int SeasonNumber { get; set; }
|
2010-09-28 22:44:33 +02:00
|
|
|
|
public bool Monitored { get; set; }
|
2011-04-10 04:44:01 +02:00
|
|
|
|
|
2011-04-01 08:36:34 +02:00
|
|
|
|
public DayOfWeek? LastInfoSync { get; set; }
|
|
|
|
|
|
|
|
|
|
public DayOfWeek? LastDiskSync { get; set; }
|
2011-03-31 03:42:27 +02:00
|
|
|
|
|
2010-10-01 02:09:22 +02:00
|
|
|
|
[SubSonicToManyRelation]
|
2010-10-21 03:49:23 +02:00
|
|
|
|
public virtual List<Episode> Episodes { get; private set; }
|
2010-10-01 02:09:22 +02:00
|
|
|
|
|
|
|
|
|
[SubSonicToOneRelation(ThisClassContainsJoinKey = true)]
|
2010-10-05 08:21:18 +02:00
|
|
|
|
public virtual Series Series { get; private set; }
|
2010-09-28 22:44:33 +02:00
|
|
|
|
}
|
|
|
|
|
}
|