DevForce Help Reference
Combine Method (ProjectionSelector)
Example 


Returns an AnonymousProjectionSelector combining this selector with the specified projection selectors.
Syntax
'Declaration
 
Public Shared Function Combine( _
   ByVal selectors As IEnumerable(Of IProjectionSelector) _
) As AnonymousProjectionSelector
'Usage
 
Dim selectors As IEnumerable(Of IProjectionSelector)
Dim value As AnonymousProjectionSelector
 
value = ProjectionSelector.Combine(selectors)

Parameters

selectors
Example
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 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

ProjectionSelector Class
ProjectionSelector Members

Send Feedback