diff --git a/src/BitzArt.CA.Core/Interfaces/IRepository.cs b/src/BitzArt.CA.Core/Interfaces/IRepository.cs index cc1debf..c40b563 100644 --- a/src/BitzArt.CA.Core/Interfaces/IRepository.cs +++ b/src/BitzArt.CA.Core/Interfaces/IRepository.cs @@ -11,26 +11,34 @@ public interface IRepository : IRepository where TEntity : class { public void Add(TEntity entity); + public void AddRange(IEnumerable entities); public void Remove(TEntity entity); + public void RemoveRange(IEnumerable entities); + [Obsolete("Use an overload with Func, IQueryable> instead")] public Task> GetAllAsync(IFilterSet? filter = null, CancellationToken cancellationToken = default); public Task> GetAllAsync(Func, IQueryable> filter, CancellationToken cancellationToken = default); + [Obsolete("Use an overload with Func, IQueryable> instead")] public Task> GetPageAsync(PageRequest pageRequest, IFilterSet? filter = null, CancellationToken cancellationToken = default); public Task> GetPageAsync(PageRequest pageRequest, Func, IQueryable> filter, CancellationToken cancellationToken = default); + [Obsolete("Use an overload with Func, IQueryable> instead")] public Task GetAsync(IFilterSet filter, CancellationToken cancellationToken = default); public Task GetAsync(Func, IQueryable> filter, CancellationToken cancellationToken = default); + [Obsolete("Use an overload with Func, IQueryable> instead")] public Task CountAsync(IFilterSet? filter = null, CancellationToken cancellationToken = default); public Task CountAsync(Func, IQueryable> filter, CancellationToken cancellationToken = default); + [Obsolete("Use an overload with Func, IQueryable> instead")] public Task LongCountAsync(IFilterSet? filter = null, CancellationToken cancellationToken = default); public Task LongCountAsync(Func, IQueryable> filter, CancellationToken cancellationToken = default); + [Obsolete("Use an overload with Func, IQueryable> instead")] public Task AnyAsync(IFilterSet? filter = null, CancellationToken cancellationToken = default); public Task AnyAsync(Func, IQueryable> filter, CancellationToken cancellationToken = default); } \ No newline at end of file