mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-13 08:42:57 -07:00
We now can refresh the Plex Metadata in our database. For example if the Plex Agent for TV Shows is TheMovieDb, we will use that and populate the IMDB Id and TheTvDb Id's so we can accuratly match and search things. Also improved the Job settings page so we can Test CRON's and we also validate them.
30 lines
No EOL
971 B
C#
30 lines
No EOL
971 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Linq.Expressions;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Query;
|
|
using Ombi.Store.Entities;
|
|
|
|
namespace Ombi.Store.Repository
|
|
{
|
|
public interface IRepository<T> : IDisposable where T : Entity
|
|
{
|
|
Task<T> Find(object key);
|
|
IQueryable<T> GetAll();
|
|
Task<T> FirstOrDefaultAsync(Expression<Func<T, bool>> predicate);
|
|
Task AddRange(IEnumerable<T> content);
|
|
Task<T> Add(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)
|
|
where TEntity : class;
|
|
|
|
Task ExecuteSql(string sql);
|
|
DbSet<T> _db { get; }
|
|
}
|
|
} |