IdeaBlade DevForce 2010 Help Reference
SelectMany(ITypedEntityQuery,IProjectionSelector) Method
See Also  Example Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityQueryExtensions Class > SelectMany Method : SelectMany(ITypedEntityQuery,IProjectionSelector) Method



source
selector
Projects each element of a sequence to an IEnumerable{T} and combines the resulting sequences into one sequence of type IQueryable{T}.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Overloads Shared Function SelectMany( _
   ByVal source As ITypedEntityQuery, _
   ByVal selector As IProjectionSelector _
) As ITypedEntityQuery
Visual Basic (Usage)Copy Code
Dim source As ITypedEntityQuery
Dim selector As IProjectionSelector
Dim value As ITypedEntityQuery
 
value = EntityQueryExtensions.SelectMany(source, selector)
C++/CLI 
[ExtensionAttribute()]
public:
static ITypedEntityQuery^ SelectMany( 
   ITypedEntityQuery^ source,
   IProjectionSelector^ selector
) 

Parameters

source
selector

Example

C#Copy Code
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();

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.