OpenPetra
Free Administration Software for Non-Profits
Ict.Tools.DBXML.TTableSort Class Reference

sort the tables by dependency of the constraints, using topological sort. in the end, we get a list of tables, in the order that you need when you populate the database with constraints enabled. first the tables that depend on nothing, and then the tables that depend on them. deleting the database can be done the other way round More...

Static Public Member Functions

static List< TTableTopologicalSort (TDataDefinitionStore AStore, List< TTable >AOrigTables)
 sort by dependancies More...
 

Detailed Description

sort the tables by dependency of the constraints, using topological sort. in the end, we get a list of tables, in the order that you need when you populate the database with constraints enabled. first the tables that depend on nothing, and then the tables that depend on them. deleting the database can be done the other way round

Member Function Documentation

◆ TopologicalSort()

static List< TTable > Ict.Tools.DBXML.TTableSort.TopologicalSort ( TDataDefinitionStore  AStore,
List< TTable AOrigTables 
)
inlinestatic

sort by dependancies

Parameters
AStore
AOrigTables
Returns

The documentation for this class was generated from the following file: