IdeaBlade DevForce 2010 Help Reference
FindEntityGraph Method
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class : FindEntityGraph Method



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
Given any entity or entities in a graph, collects and retrieves all related entities in the graph. This is a cache-only operation.

Syntax

Visual Basic (Declaration) 
Public Function FindEntityGraph( _
   ByVal roots As IEnumerable, _
   ByVal spans As IEnumerable(Of EntitySpan), _
   ByVal entityState As EntityState _
) As IList(Of Object)
Visual Basic (Usage)Copy Code
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)
C# 
public IList<object> FindEntityGraph( 
   IEnumerable roots,
   IEnumerable<EntitySpan> spans,
   EntityState entityState
)
C++/CLI 
public:
IList<Object^>^ FindEntityGraph( 
   IEnumerable^ roots,
   IEnumerable<EntitySpan^>^ spans,
   EntityState 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.