Finds entities of a given type using a query to a database stored procedure.
Namespace:
Mindscape.LightSpeedAssembly: Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)
Syntax
C# |
---|
IList<TEntity> Find<TEntity>( ProcedureQuery query ) where TEntity : Entity |
Visual Basic (Declaration) |
---|
Function Find(Of TEntity As Entity) ( _ query As ProcedureQuery _ ) As IList(Of TEntity) |
Parameters
- query
- Type: Mindscape.LightSpeed.Querying..::.ProcedureQuery
The database stored procedure query.
Type Parameters
- TEntity
- The entity type.
Return Value
A collection of entities of a given type.Examples
CopyC#
ProcedureQuery query = new ProcedureQuery("GetGoldCustomers"); IList<Customer> goldCustomers = unitOfWork.Find<Customer>(query);