IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > DynamicQueryExtensions Class > Combine Method : Combine(IProjectionSelector,IProjectionSelector) Method |
'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)
[Extension()] public static AnonymousProjectionSelector Combine( IProjectionSelector selector, IProjectionSelector other )
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(); }
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