Example #1
0
 public IQueryable <KeyValuePair <string, string> > SelectAsKeyValuePair(Expression <Func <TEntity, KeyValuePair <string, string> > > predicate, bool disableTracking = true)
 {
     if (disableTracking)
     {
         return(_dbSet.AsNoTracking().Select(predicate));
     }
     else
     {
         return(_dbSet.Select(predicate));
     }
 }