IRepositoryBase.cs 530 B

123456789101112131415161718192021
  1. global using System.Linq.Expressions;
  2. global using Entities.Models;
  3. namespace Contracts;
  4. public interface IRepositoryBase<T>
  5. {
  6. IQueryable<T> FindAll();
  7. IQueryable<T> FindByCondition(Expression<Func<T, bool>> expression);
  8. void Create(T entity);
  9. void CreateBulk(ICollection<T> entities);
  10. void UpdateBulk(ICollection<T> entities);
  11. void Update(T entity);
  12. void Delete(T entity);
  13. void DeleteBulk(ICollection<T> entities);
  14. void Detach(T entity);
  15. void DetachBulk(ICollection<T> entities);
  16. }