2010-09-28 22:44:33 +02:00
|
|
|
|
using System;
|
2010-10-01 02:09:22 +02:00
|
|
|
|
using System.Collections.Generic;
|
2010-09-28 22:44:33 +02:00
|
|
|
|
using System.ServiceModel.Syndication;
|
|
|
|
|
using SubSonic.SqlGeneration.Schema;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Repository
|
|
|
|
|
{
|
|
|
|
|
public class Season
|
|
|
|
|
{
|
2010-10-01 02:09:22 +02:00
|
|
|
|
[SubSonicPrimaryKey(false)]
|
2010-10-05 08:21:18 +02:00
|
|
|
|
public virtual long SeasonId { get; set; }
|
2010-09-28 22:44:33 +02:00
|
|
|
|
public long SeriesId { get; set; }
|
|
|
|
|
public int SeasonNumber { get; set; }
|
|
|
|
|
public bool Monitored { get; set; }
|
|
|
|
|
public string Folder { get; set; }
|
2010-10-01 02:09:22 +02:00
|
|
|
|
|
|
|
|
|
[SubSonicToManyRelation]
|
2010-10-05 08:21:18 +02:00
|
|
|
|
public virtual List<Episode.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
|
|
|
|
}
|
|
|
|
|
}
|