Peforms a FindOne operation for the specified entity type using the specified query.

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(
	string typename,
	Query query
)
Visual Basic (Declaration)
Public Function FindOne ( _
	typename As String, _
	query As Query _
) As Entity

Parameters

typename
Type: System..::.String
The fully qualified type for which to perform the FindOne operation.
query
Type: Mindscape.LightSpeed.Querying..::.Query
The query which specifies the criteria and filtering required.

Return Value

The single entity result returned by the call.

Implements

IDistributedUnitOfWorkContract..::.FindOne(String, Query)

See Also