IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > ProjectionSelector Class > ProjectionSelector Constructor : ProjectionSelector Constructor(Type,String,String) |
'Declaration
Public Function New( _ ByVal instanceType As Type, _ ByVal propertyPath As String, _ Optional ByVal alias As String _ )
'Usage
Dim instanceType As Type Dim propertyPath As String Dim alias As String Dim instance As New ProjectionSelector(instanceType, propertyPath, alias)
public ProjectionSelector( Type instanceType, string propertyPath, string alias )
public void DynamicAnonQuery() { var ps1 = new ProjectionSelector(typeof(Customer), "Id"); var ps2 = new ProjectionSelector(typeof(Customer), "CompanyName"); var allps = ProjectionSelector.Combine(new[] {ps1, ps2}); var query = manager.Customers.Select(allps); 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