DevForce Help Reference
FindEntityGraph Method


A list of entities used as the starting point for retrieving all other related entities
One or more EntitySpans
EntityState of entities to return
Given any entity or entities in a graph, collects and retrieves all related entities in the graph. This is a cache-only operation.
Syntax
'Declaration
 
Public Function FindEntityGraph( _
   ByVal roots As IEnumerable, _
   ByVal spans As IEnumerable(Of EntitySpan), _
   ByVal entityState As EntityState _
) As IList(Of Object)
'Usage
 
Dim instance As EntityManager
Dim roots As IEnumerable
Dim spans As IEnumerable(Of EntitySpan)
Dim entityState As EntityState
Dim value As IList(Of Object)
 
value = instance.FindEntityGraph(roots, spans, entityState)

Parameters

roots
A list of entities used as the starting point for retrieving all other related entities
spans
One or more EntitySpans
entityState
EntityState of entities to return

Return Value

A list of related Entities
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThrown if pEntityRoots and/or pEntitySpans is null.
System.ArgumentExceptionThrown if the type in a span does not have a matching type in one of the roots.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityManager Class
EntityManager Members

Send Feedback