Performs a Find operation where the output is to be a projection across one or more types in the query rather than an entity result and the resulting projection is to be mapped to a specified type.

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 Object[] ProjectToType(
	string typename,
	Query query
)
Visual Basic (Declaration)
Public Function ProjectToType ( _
	typename As String, _
	query As Query _
) As Object()

Parameters

typename
Type: System..::.String
The fully qualified type which to project the results into.
query
Type: Mindscape.LightSpeed.Querying..::.Query
The query to be executed which must contain the entity type.

Return Value

An array of objects of the requested type where the data will be mapped in a 1:1 fashion from the result set against the properties of the type.

Implements

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

See Also