Added the ability to specify how many episodes we should cache at a time. #1598

This commit is contained in:
tidusjar 2017-10-21 20:41:50 +01:00
commit 03f7aba47e
10 changed files with 129 additions and 37 deletions

View file

@ -16,6 +16,7 @@ namespace Ombi.Store.Repository
Task AddRange(IEnumerable<T> content);
Task DeleteRange(IEnumerable<T> req);
Task Delete(T request);
Task<int> SaveChangesAsync();
IIncludableQueryable<TEntity, TProperty> Include<TEntity, TProperty>(
IQueryable<TEntity> source, Expression<Func<TEntity, TProperty>> navigationPropertyPath)

View file

@ -60,6 +60,11 @@ namespace Ombi.Store.Repository
await _ctx.SaveChangesAsync();
}
public async Task<int> SaveChangesAsync()
{
return await _ctx.SaveChangesAsync();
}
public IIncludableQueryable<TEntity, TProperty> Include<TEntity, TProperty>(
IQueryable<TEntity> source, Expression<Func<TEntity, TProperty>> navigationPropertyPath)
where TEntity : class