mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
added Marr.Data.Mapping
This commit is contained in:
parent
4bb4faf626
commit
6dd56114e3
29 changed files with 208 additions and 229 deletions
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using NzbDrone.Core.Datastore;
|
||||
|
||||
namespace NzbDrone.Core.Indexers
|
||||
|
@ -11,14 +12,14 @@ namespace NzbDrone.Core.Indexers
|
|||
|
||||
public class IndexerRepository : BasicRepository<Indexer>, IIndexerRepository
|
||||
{
|
||||
public IndexerRepository(IDbConnection database)
|
||||
public IndexerRepository(IDatabase database)
|
||||
: base(database)
|
||||
{
|
||||
}
|
||||
|
||||
public Indexer Find(Type type)
|
||||
{
|
||||
return Single(i => i.Type == type.ToString());
|
||||
return Queryable().Single(i => i.Type == type.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue