added Marr.Data.Mapping

This commit is contained in:
kay.one 2013-03-24 20:51:32 -07:00
commit 6dd56114e3
29 changed files with 208 additions and 229 deletions

View file

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