Click or drag to resize

ObjectGraphUtilsProduceTopologyOrderedListTEntity Method

Produces the topology ordered list for the graph rooted by the entity passed in. Uses topological sort of a directed graph.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: (
public List<TEntity> ProduceTopologyOrderedList<TEntity>(
	TEntity entityToExamine,
	out List<Type> orderedTypes
where TEntity : class, IEntityCore


Type: TEntity
Entity to examine.
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


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