HistoryProvider now uses PetaPoco

This commit is contained in:
kay.one 2011-06-16 23:59:13 -07:00
commit 3ef17273fd
4 changed files with 96 additions and 76 deletions

View file

@ -1,24 +1,22 @@
using System;
using NzbDrone.Core.Model;
using NzbDrone.Core.Repository.Quality;
using PetaPoco;
using SubSonic.SqlGeneration.Schema;
namespace NzbDrone.Core.Repository
{
[PrimaryKey("HistoryId")]
public class History
{
[SubSonicPrimaryKey]
public virtual int HistoryId { get; set; }
public int HistoryId { get; set; }
public virtual int EpisodeId { get; set; }
public int EpisodeId { get; set; }
public int SeriesId { get; set; }
public string NzbTitle { get; set; }
public QualityTypes Quality { get; set; }
public DateTime Date { get; set; }
public bool IsProper { get; set; }
public string Indexer { get; set; }
[SubSonicToOneRelation(ThisClassContainsJoinKey = true)]
public virtual Episode Episode { get; protected set; }
}
}