我有一个看起来像这样的查询:
var emp = (from activeWO in context.ActiveWOs
join activeWOUpdated in context.ActiveWOUpdatedTimes on activeWO.PW_ID equals activeWOUpdated.PW_ID into dj
from activeWOUpdated in dj.DefaultIfEmpty()
where activeWO.WODC.Contains("IDC")
select new { activeWO.WO_Status,activeWO.PW_ID, activeWO.T_Number, activeWOUpdated.CALCActiveTimeSec });
我在 .dbml 文件中映射了两个表,但正如您在上面看到的,我不是只提取表类对象,而是从 2 个表中提取 3 列。
如何遍历结果emp
?