Exemplo n.º 1
0
 public T Find(Expression <Func <T, bool> > match)
 {
     return(RepoExtensions.Include(_dbSet, _include).AsTracking(_tracking).FirstOrDefault(match));
 }
Exemplo n.º 2
0
 public IEnumerable <T> GetAll(Expression <Func <T, bool> > match)
 {
     return(RepoExtensions.Include(_dbSet, _include).AsTracking(_tracking).Where(match).ToList());
 }
Exemplo n.º 3
0
 public T GetById(int id)
 {
     return(RepoExtensions.Include(_dbSet, _include).AsTracking(_tracking).FirstOrDefault(e => e.Id == id));
 }
Exemplo n.º 4
0
 public IEnumerable <T> GetAll()
 {
     return(RepoExtensions.Include(_dbSet, _include).AsTracking(_tracking).ToList());
 }