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.DataAssembly: C1.Data.Entity (in C1.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.