Finds a collection of entities that match the provided QueryExpression.
Namespace:
Mindscape.LightSpeedAssembly: Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)
Syntax
C# |
---|
IList<TEntity> Find<TEntity>( QueryExpression queryExpression ) where TEntity : Entity |
Visual Basic (Declaration) |
---|
Function Find(Of TEntity As Entity) ( _ queryExpression As QueryExpression _ ) As IList(Of TEntity) |
Parameters
- queryExpression
- Type: Mindscape.LightSpeed.Querying..::.QueryExpression
A QueryExpression used to filter the set of results that should be returned.
Type Parameters
- TEntity
- The entity type.
Return Value
A collection of entities that satisfy the supplied QueryExpressionExamples
CopyC#
IList<Customer> goldCustomers = unitOfWork.Find<Customer>(Entity.Attribute("StatusCode") == "G");