DataSource for Entity Framework in WPF
C1.Data Namespace / ClientScope Class / AddRef Method / AddRef(Type) Method
An entity type to mark as needed.

In This Topic
    AddRef(Type) Method
    In This Topic
    Mark all entities of a given type as needed. All entities of that type will not be detached from the context until the client scope is disposed.
    Syntax
    'Declaration
     
    Public Overloads Sub AddRef( _
       ByVal entityType As Type _
    ) 
    public void AddRef( 
       Type entityType
    )

    Parameters

    entityType
    An entity type to mark as needed.
    See Also