【发布时间】:2010-06-20 00:54:14
【问题描述】:
我有一个产品集合,每个产品对象都有它自己的 ProductImages 集合。每个 ProductImage 对象都有一个 IsMainImage 布尔字段。我很难构建这样的 Linq 查询:
select products.productimages.imagename where products.productid == 1 and
product.productimages.ismainimage == true
谁能帮我解决这个问题,给我指出一个在线资源,在那里我可以学习如何编写这样的 linq 查询,或两者兼而有之?
感谢您的帮助!
【问题讨论】: