You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/NzbDrone.Core/Indexers/IndexerRepository.cs

25 lines
538 B

using System;
using System.Data;
using NzbDrone.Core.Datastore;
namespace NzbDrone.Core.Indexers
{
public interface IIndexerRepository : IBasicRepository<Indexer>
{
Indexer Find(Type type);
}
public class IndexerRepository : BasicRepository<Indexer>, IIndexerRepository
{
public IndexerRepository(IDbConnection database)
: base(database)
{
}
public Indexer Find(Type type)
{
return Single(i => i.Type == type.ToString());
}
}
}