Lidarr/NzbDrone.Core/RootFolders/RootFolderRepository.cs

29 lines
736 B
C#
Raw Normal View History

2013-02-04 04:18:59 +00:00
using System.Collections.Generic;
2013-02-04 06:27:58 +00:00
using Eloquera.Client;
2013-02-04 04:18:59 +00:00
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Repository;
using System.Linq;
namespace NzbDrone.Core.RootFolders
{
2013-02-05 04:07:07 +00:00
public interface IRootFolderRepository : IBasicRepository<RootFolder>
2013-02-04 06:27:58 +00:00
{
}
//This way we only need to implement none_custom methods for repos, like custom queries etc... rest is done automagically.
2013-02-05 04:07:07 +00:00
public class RootFolderRepository : BasicRepository<RootFolder>, IRootFolderRepository
2013-02-04 06:27:58 +00:00
{
public RootFolderRepository(EloqueraDb eloqueraDb)
: base(eloqueraDb)
{
2013-02-04 04:18:59 +00:00
}
public RootFolder Add(RootFolder rootFolder)
{
2013-02-13 01:25:32 +00:00
return EloqueraDb.Insert(rootFolder);
}
}
2013-02-04 04:18:59 +00:00
}