using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore.Query; using Ombi.Store.Entities; namespace Ombi.Store.Repository { public interface IRepository where T : Entity { Task Find(object key); IQueryable GetAll(); Task FirstOrDefaultAsync(Expression> predicate); Task AddRange(IEnumerable content); IIncludableQueryable Include( IQueryable source, Expression> navigationPropertyPath) where TEntity : class; } }