Returns a strongly typed list of Entity objects that match the provided Query specification.

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>(
	Query query
) where TEntity : Entity
Visual Basic (Declaration)
Function Find(Of TEntity As Entity) ( _
	query As Query _
) As IList(Of TEntity)

Parameters

query
Type: Mindscape.LightSpeed.Querying..::.Query
The query.

Type Parameters

TEntity

Return Value

A strongly typed list of Entity objects that match the provided Query specification.

Examples

CopyC#
Query query = new Query(Entity.Attribute("OrderId") == 101);
IList<Product> products = unitOfWork.Find<Product>(query);

See Also