mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
QualityProvider moved to PetaPoco.
This commit is contained in:
parent
9daf1ccfc0
commit
446a939f45
4 changed files with 36 additions and 22 deletions
|
@ -2,10 +2,13 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using PetaPoco;
|
||||
using SubSonic.SqlGeneration.Schema;
|
||||
|
||||
namespace NzbDrone.Core.Repository.Quality
|
||||
{
|
||||
[TableName("QualityProfiles")]
|
||||
[PrimaryKey("QualityProfileId", autoIncrement = true)]
|
||||
public class QualityProfile
|
||||
{
|
||||
[SubSonicPrimaryKey]
|
||||
|
@ -16,10 +19,12 @@ namespace NzbDrone.Core.Repository.Quality
|
|||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Ignore]
|
||||
[SubSonicIgnore]
|
||||
[DisplayName("Allowed Qualities")]
|
||||
public List<QualityTypes> Allowed { get; set; }
|
||||
|
||||
[Ignore]
|
||||
[SubSonicIgnore]
|
||||
[DisplayName("Allowed Qualities String")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
|
@ -54,6 +59,7 @@ namespace NzbDrone.Core.Repository.Quality
|
|||
}
|
||||
}
|
||||
|
||||
[Ignore]
|
||||
[SubSonicToManyRelation]
|
||||
public virtual List<Series> Series { get; private set; }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue