mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
Fixed issue with storing and retrieving quality profile, checking the profile.
This commit is contained in:
parent
a7780fab67
commit
309e1ba249
3 changed files with 10 additions and 4 deletions
|
@ -11,7 +11,7 @@ namespace NzbDrone.Core.Repository.Quality
|
|||
[SubSonicPrimaryKey(true)]
|
||||
public int ProfileId { get; set; }
|
||||
|
||||
[Required (ErrorMessage = "A Name is Required")]
|
||||
[Required(ErrorMessage = "A Name is Required")]
|
||||
[DisplayName("Name")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public string Name { get; set; }
|
||||
|
@ -52,5 +52,8 @@ namespace NzbDrone.Core.Repository.Quality
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
[SubSonicToManyRelation]
|
||||
public virtual List<string> Series { get; private set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,7 +30,10 @@ namespace NzbDrone.Core.Repository
|
|||
|
||||
public bool Monitored { get; set; }
|
||||
|
||||
public QualityProfile QualityProfile { get; set; }
|
||||
public virtual int ProfileId { get; set; }
|
||||
|
||||
[SubSonicToOneRelation(ThisClassContainsJoinKey = true)]
|
||||
public virtual QualityProfile QualityProfile { get; set; }
|
||||
|
||||
[SubSonicToManyRelation]
|
||||
public virtual List<Season> Seasons { get; private set; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue