Assembly: Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)
Syntax
C# |
---|
Entity FindOne( Query query ) |
Visual Basic (Declaration) |
---|
Function FindOne ( _ query As Query _ ) As Entity |
Parameters
- query
- Type: Mindscape.LightSpeed.Querying..::.Query
The query.
Return Value
The Entity that matches the provided Query specification.Examples
CopyC#
Query query = new Query(typeof(Order), Entity.Attribute("Id") == 101); Entity order = unitOfWork.FindOne(query);