mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
added Marr.Data.Mapping
This commit is contained in:
@@ -13,19 +13,19 @@ namespace NzbDrone.Core.ReferenceData
|
||||
|
||||
public class SceneMappingRepository : BasicRepository<SceneMapping>, ISceneMappingRepository
|
||||
{
|
||||
public SceneMappingRepository(IDbConnection database)
|
||||
public SceneMappingRepository(IDatabase database)
|
||||
: base(database)
|
||||
{
|
||||
}
|
||||
|
||||
public SceneMapping FindByTvdbId(int tvdbId)
|
||||
{
|
||||
return SingleOrDefault(c => c.TvdbId == tvdbId);
|
||||
return Queryable().SingleOrDefault(c => c.TvdbId == tvdbId);
|
||||
}
|
||||
|
||||
public SceneMapping FindByCleanTitle(string cleanTitle)
|
||||
{
|
||||
return SingleOrDefault(c => c.CleanTitle == cleanTitle);
|
||||
return Queryable().SingleOrDefault(c => c.CleanTitle == cleanTitle);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user