IdeaBlade DevForce 2010 Help Reference
Combine(IProjectionSelector,IProjectionSelector) Method
See Also  Example Send Feedback
IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > DynamicQueryExtensions Class > Combine Method : Combine(IProjectionSelector,IProjectionSelector) Method



selector
other
Returns an AnonymousProjectionSelector combining the current projection selector with another.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Overloads Shared Function Combine( _
   ByVal selector As IProjectionSelector, _
   ByVal other As IProjectionSelector _
) As AnonymousProjectionSelector
Visual Basic (Usage)Copy Code
Dim selector As IProjectionSelector
Dim other As IProjectionSelector
Dim value As AnonymousProjectionSelector
 
value = DynamicQueryExtensions.Combine(selector, other)

Parameters

selector
other

Example

C#Copy Code
public void DynamicAnonQueryCombine() {
  var ps1 = new ProjectionSelector(typeof(Customer), "Id");
  var ps2 = new ProjectionSelector(typeof(Customer), "CompanyName");
  var query = manager.Customers.Select(ps1.Combine(ps2));
  var anonItems = 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.