API
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.

IRepository.cs 680B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using UnivateProperties_API.Model.Users;
  4. namespace UnivateProperties_API.Repository
  5. {
  6. public interface IRepository<TEntity> where TEntity : class
  7. {
  8. List<TEntity> GetAll();
  9. List<TEntity> Get(Func<TEntity, bool> where);
  10. TEntity GetDetailed(Func<TEntity, bool> first);
  11. List<TEntity> GetDetailedAll();
  12. void Insert(TEntity item);
  13. void Insert(IEnumerable<TEntity> items);
  14. void Remove(TEntity item);
  15. void Remove(IEnumerable<TEntity> items);
  16. void RemoveAtId(int item);
  17. void Update(TEntity item);
  18. //int NewId();
  19. void Save();
  20. }
  21. }