DevForce Help Reference
Combine(IProjectionSelector,IProjectionSelector) Method
Example 


Returns an AnonymousProjectionSelector combining the current projection selector with another.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function Combine( _
   ByVal selector As IProjectionSelector, _
   ByVal other As IProjectionSelector _
) As AnonymousProjectionSelector
'Usage
 
Dim selector As IProjectionSelector
Dim other As IProjectionSelector
Dim value As AnonymousProjectionSelector
 
value = DynamicQueryExtensions.Combine(selector, other)

Parameters

selector
other
Example
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 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

DynamicQueryExtensions Class
DynamicQueryExtensions Members
Overload List

Send Feedback