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