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<Entity> Find(
	Type entityType,
	QueryExpression queryExpression,
	Order order,
	Page page
)
Visual Basic (Declaration)
Function Find ( _
	entityType As Type, _
	queryExpression As QueryExpression, _
	order As Order, _
	page As Page _
) As IList(Of Entity)

Parameters

entityType
Type: System..::.Type
The entity type.
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.

Return Value

A collection of entities that satisfy the supplied criteria.

Examples

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

See Also