【发布时间】:2014-08-26 14:35:37
【问题描述】:
我正在使用以下 linq 查询:
var docList = from c in container.DocumentDeliveryPreferences
join o in container.Documents on c.DocumentId equals o.DocumentId
select new { o.Name, o.DocumentType, c.CustomerId };
如何修改它以仅选择 c.CustomerId 等于 X(某些参数)的文档?
【问题讨论】:
-
只需在
select之前添加where c.CustomerID == X?? -
这和 ASP.NET 有什么关系?