DevForce Help Reference
Take(ITypedEntityQuery,Int32) Method
Example 


Returns a specified number of contiguous elements from the start of a sequence.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function Take( _
   ByVal source As ITypedEntityQuery, _
   ByVal count As Integer _
) As ITypedEntityQuery
'Usage
 
Dim source As ITypedEntityQuery
Dim count As Integer
Dim value As ITypedEntityQuery
 
value = EntityQueryExtensions.Take(source, count)

Parameters

source
count
Example
var mgr = new DomainModelEntityManager();

var entityType = typeof(Customer);
var baseQuery = EntityQuery.Create(entityType, mgr);
var pss = new SortSelector("Id");
var query = baseQuery.OrderBySelector(pss).Skip(10).Take(10);
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

EntityQueryExtensions Class
EntityQueryExtensions Members
Overload List

Send Feedback