mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
moved series/season/episodes to object db.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user