added siaqodb

This commit is contained in:
kay.one 2013-02-16 17:52:40 -08:00
commit e44d262a1a
29 changed files with 761 additions and 553 deletions

View file

@ -1,7 +1,4 @@
using System.Collections.Generic;
using Eloquera.Client;
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Repository;
using NzbDrone.Core.Datastore;
using System.Linq;
namespace NzbDrone.Core.RootFolders
@ -14,15 +11,15 @@ namespace NzbDrone.Core.RootFolders
//This way we only need to implement none_custom methods for repos, like custom queries etc... rest is done automagically.
public class RootFolderRepository : BasicRepository<RootFolder>, IRootFolderRepository
{
public RootFolderRepository(EloqueraDb eloqueraDb)
: base(eloqueraDb)
public RootFolderRepository(IObjectDatabase objectDatabase)
: base(objectDatabase)
{
}
public RootFolder Add(RootFolder rootFolder)
{
return EloqueraDb.Insert(rootFolder);
return ObjectDatabase.Insert(rootFolder);
}
}
}