IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > QueryableExtensions Class > SelectMany Method : SelectMany(IQueryable,IProjectionSelector) Method |
'Declaration
<ExtensionAttribute()> Public Overloads Shared Function SelectMany( _ ByVal source As IQueryable, _ ByVal selector As IProjectionSelector _ ) As IQueryable
'Usage
Dim source As IQueryable Dim selector As IProjectionSelector Dim value As IQueryable value = QueryableExtensions.SelectMany(source, selector)
[Extension()] public static IQueryable SelectMany( IQueryable source, IProjectionSelector selector )
var mgr = new DomainModelEntityManager(); var entityType = typeof(Customer); var baseQuery = EntityQuery.Create(entityType, mgr); var query = baseQuery.Take(2).SelectMany(new ProjectionSelector("OrderSummaries")); var results = query.Execute();
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2