mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
moved series/season/episodes to object db.
This commit is contained in:
parent
4504232956
commit
b5644bf660
93 changed files with 1025 additions and 1338 deletions
|
@ -11,6 +11,8 @@ namespace NzbDrone.Core.Datastore
|
|||
TModel Update(TModel model);
|
||||
TModel Upsert(TModel model);
|
||||
void Delete(int id);
|
||||
IList<TModel> InsertMany(IList<TModel> model);
|
||||
IList<TModel> UpdateMany(IList<TModel> model);
|
||||
}
|
||||
|
||||
public class BasicRepository<TModel> : IBasicRepository<TModel> where TModel : ModelBase, new()
|
||||
|
@ -44,6 +46,16 @@ namespace NzbDrone.Core.Datastore
|
|||
return ObjectDatabase.Update(model);
|
||||
}
|
||||
|
||||
public IList<TModel> InsertMany(IList<TModel> model)
|
||||
{
|
||||
return ObjectDatabase.InsertMany(model);
|
||||
}
|
||||
|
||||
public IList<TModel> UpdateMany(IList<TModel> model)
|
||||
{
|
||||
return ObjectDatabase.UpdateMany(model);
|
||||
}
|
||||
|
||||
public TModel Upsert(TModel model)
|
||||
{
|
||||
if(model.OID == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue