public IEnumerable<TEntity> Find<T>(Expression<Func<TEntity, bool>> whereClause, Expression<Func<TEntity, T>> orderbyClause, bool des)
{
DbSet<TEntity> query = context.Set<TEntity>();
if (des)
{
return query.Select(p => p).Where(whereClause).OrderByDescending(orderbyClause);
}
return query.Select(p => p).Where(whereClause).OrderBy(orderbyClause);
}
试问上面的TEntity,和T代表的是一个含义么?
很明显不是