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



source
selector
Projects each element of a sequence into a new form.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Overloads Shared Function Select( _
   ByVal source As IQueryable, _
   ByVal selector As IProjectionSelector _
) As IQueryable
Visual Basic (Usage)Copy Code
Dim source As IQueryable
Dim selector As IProjectionSelector
Dim value As IQueryable
 
value = QueryableExtensions.Select(source, selector)
C# 
[ExtensionAttribute()]
public static IQueryable Select( 
   IQueryable source,
   IProjectionSelector selector
)
C++/CLI 
[ExtensionAttribute()]
public:
static IQueryable^ Select( 
   IQueryable^ source,
   IProjectionSelector^ selector
) 

Parameters

source
selector

Example

C#Copy Code
var mgr = new DomainModelEntityManager();

var entityType = typeof(Customer); 
var rootQuery = EntityQuery.Create(entityType, mgr);

var ps1 = new ProjectionSelector("CompanyName");
var ps2 = new ProjectionSelector("ContactName");
var pps = ps1.Combine(ps2);

var query = rootQuery.Select(pps);
var results = 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.