ObjectGraphUtilsProduceTopologyOrderedListTEntity Method |
Produces the topology ordered list for the graph rooted by the entity passed in. Uses topological sort of a directed graph using a non-recursive implementation of Tarjan's
algorithm using an in-line stack.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.7.0.0 (5.7.0)
Syntax public List<TEntity> ProduceTopologyOrderedList<TEntity>(
TEntity entityToExamine,
out List<Type> orderedTypes
)
where TEntity : class, IEntityCore
Public Function ProduceTopologyOrderedList(Of TEntity As {Class, IEntityCore}) (
entityToExamine As TEntity,
<OutAttribute> ByRef orderedTypes As List(Of Type)
) As List(Of TEntity)
Parameters
- entityToExamine
- Type: TEntity
Entity to examine. - orderedTypes
- Type: System.Collections.GenericListType
the types of the entities, sorted by dependency, where a type at index N+1 depends on a type at index N.
Type Parameters
- TEntity
Return Value
Type:
ListTEntity
List which represents the complete graph of entities which are reachable from entityToExamine, and sorted in the right order,
so every entity which depends on another entity is placed after the entity/entities it depends on.
See Also