mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
still very broken
This commit is contained in:
parent
2d4998d52d
commit
4504232956
43 changed files with 264 additions and 339 deletions
|
@ -5,9 +5,9 @@ namespace NzbDrone.Core.Datastore
|
|||
{
|
||||
public interface IBasicRepository<TModel>
|
||||
{
|
||||
List<TModel> All();
|
||||
IEnumerable<TModel> All();
|
||||
TModel Get(int id);
|
||||
TModel Add(TModel model);
|
||||
TModel Insert(TModel model);
|
||||
TModel Update(TModel model);
|
||||
TModel Upsert(TModel model);
|
||||
void Delete(int id);
|
||||
|
@ -24,7 +24,7 @@ namespace NzbDrone.Core.Datastore
|
|||
|
||||
protected IEnumerable<TModel> Queryable { get { return ObjectDatabase.AsQueryable<TModel>(); } }
|
||||
|
||||
public List<TModel> All()
|
||||
public IEnumerable<TModel> All()
|
||||
{
|
||||
return Queryable.ToList();
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ namespace NzbDrone.Core.Datastore
|
|||
return Queryable.Single(c => c.OID == id);
|
||||
}
|
||||
|
||||
public TModel Add(TModel model)
|
||||
public TModel Insert(TModel model)
|
||||
{
|
||||
return ObjectDatabase.Insert(model);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue