mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
removed Season/SeasonProvider, updated dbBenchmark tests.
This commit is contained in:
parent
2ecd5ddb98
commit
d3be516fb2
34 changed files with 317 additions and 485 deletions
|
@ -41,7 +41,7 @@ namespace NzbDrone.Core.Providers
|
|||
|
||||
public virtual Series GetSeries(int seriesId)
|
||||
{
|
||||
return _repository.Single<Series>(s => s.SeriesId == seriesId);
|
||||
return _repository.Single<Series>(seriesId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -124,7 +124,7 @@ namespace NzbDrone.Core.Providers
|
|||
Logger.Warn("Deleting Series [{0}]", seriesId);
|
||||
var series = _repository.Single<Series>(seriesId);
|
||||
|
||||
//Delete Files, Episdes, Seasons then the Series
|
||||
//Delete Files, Episodes, Seasons then the Series
|
||||
//Can't use providers because episode provider needs series provider - Cyclic Dependency Injection, this will work
|
||||
|
||||
//Delete History Items for any episodes that belong to this series
|
||||
|
@ -140,10 +140,6 @@ namespace NzbDrone.Core.Providers
|
|||
Logger.Debug("Deleting Episodes from DB for Series: {0}", series.SeriesId);
|
||||
_repository.DeleteMany(series.Episodes);
|
||||
|
||||
//Delete seasons for this series from the DB
|
||||
Logger.Debug("Deleting Seasons from DB for Series: {0}", series.SeriesId);
|
||||
_repository.DeleteMany(series.Seasons);
|
||||
|
||||
//Delete the Series
|
||||
Logger.Debug("Deleting Series from DB {0}", series.Title);
|
||||
_repository.Delete<Series>(seriesId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue