QualityProvider moved to PetaPoco.

This commit is contained in:
Mark McDowall 2011-06-17 13:31:25 -07:00
commit 446a939f45
4 changed files with 36 additions and 22 deletions

View file

@ -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; }
}