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