DevForce Help Reference
Select(IQueryable,IProjectionSelector) Method
Example 


Projects each element of a sequence into a new form.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function Select( _
   ByVal source As IQueryable, _
   ByVal selector As IProjectionSelector _
) As IQueryable
'Usage
 
Dim source As IQueryable
Dim selector As IProjectionSelector
Dim value As IQueryable
 
value = QueryableExtensions.Select(source, selector)

Parameters

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

QueryableExtensions Class
QueryableExtensions Members
Overload List

Send Feedback