I have the following c# statement that via EF generates exactly what I’m looking for but am curious as to how I’d write this with query syntax:
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);
1 Answer