mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Fixed up Eloquera integration, working much better now.
This commit is contained in:
parent
8c99cca207
commit
ace7910f2a
11 changed files with 70 additions and 30 deletions
|
@ -8,9 +8,9 @@ namespace NzbDrone.Core.Datastore
|
|||
public interface IBasicRepository<TModel>
|
||||
{
|
||||
List<TModel> All();
|
||||
TModel Get(int rootFolderId);
|
||||
TModel Get(long rootFolderId);
|
||||
TModel Add(TModel rootFolder);
|
||||
void Delete(int rootFolderId);
|
||||
void Delete(long rootFolderId);
|
||||
}
|
||||
|
||||
public abstract class BasicRepository<TModel> : IBasicRepository<TModel> where TModel : BaseRepositoryModel, new()
|
||||
|
@ -27,7 +27,7 @@ namespace NzbDrone.Core.Datastore
|
|||
return EloqueraDb.AsQueryable<TModel>().ToList();
|
||||
}
|
||||
|
||||
public TModel Get(int id)
|
||||
public TModel Get(long id)
|
||||
{
|
||||
return EloqueraDb.AsQueryable<TModel>().Single(c => c.Id == id);
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ namespace NzbDrone.Core.Datastore
|
|||
return EloqueraDb.Insert(model);
|
||||
}
|
||||
|
||||
public void Delete(int id)
|
||||
public void Delete(long id)
|
||||
{
|
||||
var itemToDelete = Get(id);
|
||||
EloqueraDb.Delete(itemToDelete);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue