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