Finds a collection of Entities that satisfy the supplied criteria.

Namespace:  Mindscape.LightSpeed
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
IList<TEntity> Find<TEntity>(
	QueryExpression queryExpression,
	Order order,
	Page page
) where TEntity : Entity
Visual Basic (Declaration)
Function Find(Of TEntity As Entity) ( _
	queryExpression As QueryExpression, _
	order As Order, _
	page As Page _
) As IList(Of TEntity)

Parameters

queryExpression
Type: Mindscape.LightSpeed.Querying..::.QueryExpression
A QueryExpression used to filter the set of results that should be returned.
order
Type: Mindscape.LightSpeed.Querying..::.Order
An Order describing the order in which results should be returned.
page
Type: Mindscape.LightSpeed.Querying..::.Page
A Page describing the logical page of results that should be returned.

Type Parameters

TEntity
The entity type.

Return Value

A collection of entities that satisfy the supplied criteria.

Examples

CopyC#
IList<Customer> thirdPageOfGoldCustomers = unitOfWork.Find<Customer>(
  Entity.Attribute("StatusCode") == "G"),
  Order.By("Name"),
  Page.Offset(20).Limit(10));

See Also