📅  最后修改于: 2022-03-11 14:49:17.386000             🧑  作者: Mango
public static IQueryable GetDistinctProdType(
this IQueryable query,
int categoryId)
{
return (from p in query
where p.CatID == categoryId
select p.Type).Distinct();
}