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