[]
        
(Showing Draft Content)

C1.Data.DataExtensions.ExecuteIn

ExecuteIn Method

ExecuteIn<T>(IEnumerable<T>, ClientScope)

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.

Declaration
public static IEnumerable<T> ExecuteIn<T>(this IEnumerable<T> query, ClientScope scope)
Parameters
Type Name Description
IEnumerable<T> query

The query to execute inside the client scope.

ClientScope scope

The client scope to execute the query in.

Returns
Type Description
IEnumerable<T>

The query that will be executed inside the given scope.

Type Parameters
Name Description
T

The type of items returned by the query.