RootDirs moved to PetaPoco. Removed SubSonic references from EpisodeFile & SceneMapping.

This commit is contained in:
Mark McDowall 2011-06-17 08:27:18 -07:00
commit f7ee16dbba
6 changed files with 31 additions and 31 deletions

View file

@ -2,7 +2,6 @@
using System.Collections.Generic;
using NzbDrone.Core.Repository.Quality;
using PetaPoco;
using SubSonic.SqlGeneration.Schema;
namespace NzbDrone.Core.Repository
{
@ -10,7 +9,6 @@ namespace NzbDrone.Core.Repository
[PrimaryKey("EpisodeFileId", autoIncrement = true)]
public class EpisodeFile
{
[SubSonicPrimaryKey]
public virtual int EpisodeFileId { get; set; }
public virtual int SeriesId { get; set; }
@ -21,11 +19,9 @@ namespace NzbDrone.Core.Repository
public long Size { get; set; }
public DateTime DateAdded { get; set; }
[SubSonicToManyRelation]
[Ignore]
public virtual IList<Episode> Episodes { get; set; }
[SubSonicToOneRelation(ThisClassContainsJoinKey = true)]
[Ignore]
public virtual Series Series { get; set; }
}

View file

@ -1,10 +1,11 @@
using SubSonic.SqlGeneration.Schema;
using PetaPoco;
namespace NzbDrone.Core.Repository
{
[TableName("RootDirs")]
[PrimaryKey("Id", autoIncrement = true)]
public class RootDir
{
[SubSonicPrimaryKey]
public virtual int Id { get; set; }
public string Path { get; set; }

View file

@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using PetaPoco;
using SubSonic.SqlGeneration.Schema;
namespace NzbDrone.Core.Repository
{
@ -11,7 +10,6 @@ namespace NzbDrone.Core.Repository
[PrimaryKey("CleanTitle", autoIncrement = false)]
public class SceneMapping
{
[SubSonicPrimaryKey]
public virtual string CleanTitle { get; set; }
public virtual int SeriesId { get; set; }