IRepositoryBase.cs 346 B

1234567891011121314151617
  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 Update(T entity);
  10. void Delete(T entity);
  11. void Detach(T entity);
  12. }