mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 01:38:24 +00:00
33b09567ce
Fixed Relationships between History and Episode/Indexer. Indexer now uses int as ID, string caused issues. Get single Indexer by ID.
28 lines
780 B
C#
28 lines
780 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using SubSonic.SqlGeneration.Schema;
|
|
|
|
namespace NzbDrone.Core.Repository
|
|
{
|
|
public class Indexer
|
|
{
|
|
[SubSonicPrimaryKey(false)]
|
|
public virtual int IndexerId { get; set; }
|
|
|
|
public string IndexerName { get; set; }
|
|
public string RssUrl { get; set; }
|
|
|
|
[SubSonicNullStringAttribute]
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
|
public string ApiUrl { get; set; }
|
|
public bool Enabled { get; set; }
|
|
public int Order { get; set; }
|
|
|
|
[SubSonicToManyRelation]
|
|
public virtual List<History> Histories { get; private set; }
|
|
}
|
|
}
|