mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
RootDirs moved to PetaPoco. Removed SubSonic references from EpisodeFile & SceneMapping.
This commit is contained in:
parent
2a32770b69
commit
f7ee16dbba
6 changed files with 31 additions and 31 deletions
|
@ -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; }
|
||||
}
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue