新手问题:
有这样一个IQueryable返回值
public IQueryable GetProductList()
{
var query = from p in Product
join c in Category on p.CategoryId equals c.CategoryId into category
from c in category.DefaultIfEmpty()
select new
{
p,
c
};
return query;
}
现在想取出IQueryable中的类型,怎么转换成IQueryable<T>呢?
繁华开满天机
侃侃尔雅