Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq.Expressions;
  4. using System.Threading.Tasks;
  5.  
  6. namespace Cooperchip.ITDeveloper.Domain.Repositories.Base
  7. {
  8. public interface IRepositoryCooperchip<TEntity, TKey> : IDisposable
  9. where TEntity : class
  10. {
  11. Task<List<TEntity>> SelecionarTodos(Expression<Func<TEntity, bool>> quando = null);
  12. TEntity SelecionarPorId(TKey id);
  13.  
  14. void Inserir(TEntity obj);
  15. void Atualizar(TEntity obj);
  16. void Excluir(TEntity obj);
  17. void ExcluirPorId(TKey id);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement