Delete plex episodes on every run due to a bug, need to spend quite a bit of time on this.

This commit is contained in:
tidusjar 2018-01-28 21:40:03 +00:00
commit c7d88f8808
3 changed files with 21 additions and 10 deletions

View file

@ -22,5 +22,7 @@ namespace Ombi.Store.Repository
IIncludableQueryable<TEntity, TProperty> Include<TEntity, TProperty>(
IQueryable<TEntity> source, Expression<Func<TEntity, TProperty>> navigationPropertyPath)
where TEntity : class;
Task ExecuteSql(string sql);
}
}

View file

@ -72,6 +72,11 @@ namespace Ombi.Store.Repository
return source.Include(navigationPropertyPath);
}
public async Task ExecuteSql(string sql)
{
await _ctx.Database.ExecuteSqlCommandAsync(sql);
}
private bool _disposed;
// Protected implementation of Dispose pattern.