You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IBaseService.cs 614 B

2 weken geleden
1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Domain;
  7. namespace Services
  8. {
  9. public interface IBaseService<T>
  10. where T : BaseEntity
  11. {
  12. void Add(T entity);
  13. void Update(T entity);
  14. void Delete(Guid id);
  15. public void DeleteWithoutSave(Guid id);
  16. public void SaveChanges();
  17. IQueryable<T> GetQueryable();
  18. IQueryable<T> GetWithPaging(int page = 1, int pageSize = 100);
  19. T GetById(Guid id);
  20. void AddOrUpdate(T entity);
  21. bool CanBeDeleted(Guid id);
  22. }
  23. }