mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-26 17:47:08 +00:00
33b09567ce
Fixed Relationships between History and Episode/Indexer. Indexer now uses int as ID, string caused issues. Get single Indexer by ID.
24 lines
794 B
C#
24 lines
794 B
C#
using System;
|
|
using NzbDrone.Core.Repository.Quality;
|
|
using SubSonic.SqlGeneration.Schema;
|
|
|
|
namespace NzbDrone.Core.Repository
|
|
{
|
|
public class History
|
|
{
|
|
[SubSonicPrimaryKey(true)]
|
|
public virtual int HistoryId { get; set; }
|
|
public virtual int EpisodeId { get; set; }
|
|
public virtual int IndexerId { get; set; }
|
|
public string NzbTitle { get; set; }
|
|
public QualityTypes Quality { get; set; }
|
|
public DateTime Date { get; set; }
|
|
public bool IsProper { get; set; }
|
|
|
|
[SubSonicToOneRelation(ThisClassContainsJoinKey = true)]
|
|
public virtual Episode Episode { get; private set; }
|
|
|
|
[SubSonicToOneRelation(ThisClassContainsJoinKey = true)]
|
|
public virtual Indexer Indexer { get; private set; }
|
|
}
|
|
}
|