IdeaBlade DevForce 2010 Help Reference
Combine Method
See Also  Example Send Feedback
IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > ProjectionSelector Class : Combine Method



selectors
Returns an AnonymousProjectionSelector combining this selector with the specified projection selectors.

Syntax

Visual Basic (Declaration) 
Public Shared Function Combine( _
   ByVal selectors As IEnumerable(Of IProjectionSelector) _
) As AnonymousProjectionSelector
Visual Basic (Usage)Copy Code
Dim selectors As IEnumerable(Of IProjectionSelector)
Dim value As AnonymousProjectionSelector
 
value = ProjectionSelector.Combine(selectors)

Parameters

selectors

Example

C#Copy Code
var entityType = typeof(Customer);
var rootQuery = EntityQuery.Create(entityType, _entityManager);
var pps = ProjectionSelector.Combine(new[] 
  { new ProjectionSelector(entityType, "City", "City"), 
    new ProjectionSelector(entityType, "PostalCode", "PostalCode") 
  });

var results = rootQuery.Select(pps).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.