dal + other

This commit is contained in:
Mikhail Kuznetsov
2023-05-17 16:30:13 +10:00
parent 5338c489aa
commit 868af2dd0e
27 changed files with 346 additions and 20 deletions

View File

@@ -0,0 +1,19 @@
using PARR.DAL.Models.Base;
namespace PARR.DAL.Services.Interfaces.Base
{
public interface IBaseService<T> where T : class, IBase
{
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();
}
}