You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server database. You create the classes shown in the
following exhibit.
You add the following code segment to the application. (Line numbers are included for reference
only.)
A.
var query = leagues.Select(l => l.Teams.Select(t => t.Players));
B.
var query = leagues.Select(l => l.Teams.SelectMany(t => t.Players));
C.
var query = leagues.SelectMany(l => l.Teams.SelectMany(t => t.Players));
D.
var query = leagues.SelectMany(l => l.Teams.Select(t => t.Players));
Explanation: