【发布时间】:2011-10-05 14:27:52
【问题描述】:
我有以下 c# 语句,它通过 EF 生成我正在寻找的内容,但很好奇我如何使用查询语法编写它:
var dealers = this.Dealers
.SelectMany (d => d.Brands, (d, col) => new { Name = d.Name, Brand = col.Name, StatusId = d.StatusId })
.Where (d => d.StatusId == 1);
【问题讨论】:
标签: c# linq entity-framework