📜  linq query select top 1 c# 代码示例

📅  最后修改于: 2022-03-11 14:49:02.297000             🧑  作者: Mango

代码示例1
imageName = (from soh in db.tblProductImages
             where soh.product_id == e.ProductId
             select soh.image_name).FirstOrDefault()