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