API
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

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