Finds a collection of entities that satisfy the supplied QueryExpression.

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
)
Visual Basic (Declaration)
Function Find ( _
	entityType As Type, _
	queryExpression As QueryExpression _
) 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.

Return Value

A collection of entities that satisfy the supplied QueryExpression

Examples

CopyC#
IList<Entity> goldCustomers = unitOfWork.Find(typeof(Customer), Entity.Attribute("StatusCode") == "G");

See Also