DataSource for Entity Framework in WPF
C1.Data Namespace / DataExtensions Class / ExecuteIn<T> Method
The type of items returned by the query.
The query to execute inside the client scope.
The client scope to execute the query in.

In This Topic
    ExecuteIn<T> Method
    In This Topic
    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.
    Syntax
    'Declaration
     
    Public Shared Function ExecuteIn(Of T)( _
       ByVal query As IEnumerable(Of T), _
       ByVal scope As ClientScope _
    ) As IEnumerable(Of T)
    public static IEnumerable<T> ExecuteIn<T>( 
       IEnumerable<T> query,
       ClientScope scope
    )

    Parameters

    query
    The query to execute inside the client scope.
    scope
    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