42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
using PARR.Core.Repositories.Base;
|
|
using PARR.Domain.Entities.Base;
|
|
|
|
namespace PARR.DAL.Services.Interfaces.Base
|
|
{
|
|
public interface IBaseService<T> : IBaseRepository<T> where T : class, IBaseEntity
|
|
{
|
|
// TODO: позже удалить этот интерфейс, когда изменим все сервисы на репозитории
|
|
|
|
//Task<T?> GetAsync(Guid id);
|
|
//IQueryable<T> Get();
|
|
//IQueryable<T> GetPage(IQueryable<T> query, PaginationFilter paginationFilter);
|
|
|
|
//Task<bool> CreateAsync(T obj);
|
|
//Task<bool> AddRangeAsync(List<T> objs);
|
|
|
|
//Task<bool> DeleteAsync(Guid id);
|
|
//bool Delete(T obj);
|
|
|
|
////Task<bool> CommitAsync();
|
|
//Task<bool> CommitAsync(IHistoryInitiator? initiator = null);
|
|
}
|
|
|
|
|
|
|
|
//public interface IBaseService<T> where T : class, IBaseEntity
|
|
//{
|
|
// Task<T?> GetAsync(Guid id);
|
|
// IQueryable<T> Get();
|
|
// IQueryable<T> GetPage(IQueryable<T> query, PaginationFilter paginationFilter);
|
|
|
|
// Task<bool> CreateAsync(T obj);
|
|
// Task<bool> AddRangeAsync(List<T> objs);
|
|
|
|
// Task<bool> DeleteAsync(Guid id);
|
|
// bool Delete(T obj);
|
|
|
|
// //Task<bool> CommitAsync();
|
|
// Task<bool> CommitAsync(IHistoryInitiator? initiator = null);
|
|
//}
|
|
}
|