Executes a query in a scope, so the loaded entities are pinned to the scope (marked as needed) by calling AddRef(Object) for each of them.

Namespace:  C1.Data
Assembly:  C1.Silverlight.Data.Entity (in C1.Silverlight.Data.Entity.dll)

Syntax

C#
public static IEnumerable<T> ExecuteIn<T>(
	this IEnumerable<T> query,
	ClientScope scope
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function ExecuteIn(Of T) ( _
	query As IEnumerable(Of T), _
	scope As ClientScope _
) As IEnumerable(Of T)

Parameters

query
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'T>)>)>
The query to execute inside the client scope.
scope
Type: C1.Data..::..ClientScope
The client scope to execute the query in.

Type Parameters

T
The type of items returned by the query.

Return Value

The query that will be executed inside the given scope.

See Also