DevForce Help Reference
SelectMany<TSource>(IEntityQuery<TSource>,IProjectionSelector) Method
Example 


Projects each element of a sequence to an IEnumerable{T} and combines the resulting sequences into one sequence of type IQueryable{T}.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function SelectMany(Of TSource)( _
   ByVal source As IEntityQuery(Of TSource), _
   ByVal selector As IProjectionSelector _
) As ITypedEntityQuery
'Usage
 
Dim source As IEntityQuery(Of TSource)
Dim selector As IProjectionSelector
Dim value As ITypedEntityQuery
 
value = EntityQueryExtensions.SelectMany(Of TSource)(source, selector)

Parameters

source
selector

Type Parameters

TSource
Example
var mgr = new DomainModelEntityManager();

var baseQuery = mgr.Customers;
var query = baseQuery.Take(2).SelectMany(new ProjectionSelector("OrderSummaries"));
var results = query.Execute();
Requirements

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

See Also

Reference

EntityQueryExtensions Class
EntityQueryExtensions Members
Overload List

Send Feedback