Finds a single Entity that satisifies the provided QueryExpression.

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

Syntax

C#
public Entity FindOne(
	Type entityType,
	QueryExpression queryExpression
)
Visual Basic (Declaration)
Public Function FindOne ( _
	entityType As Type, _
	queryExpression As QueryExpression _
) As Entity

Parameters

entityType
Type: System..::.Type
The entity type.
queryExpression
Type: Mindscape.LightSpeed.Querying..::.QueryExpression
A QueryExpression used to match the Entity that should be returned.

Return Value

A single Entity that satisfies the supplied QueryExpression.

Implements

IUnitOfWork..::.FindOne(Type, QueryExpression)

See Also