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