Class DependencyHierarchy
- Namespace
- TimeCockpit.Data.DataModel
- Assembly
- TimeCockpit.Data.dll
Represents a dependency hierarchy
public class DependencyHierarchy
- Inheritance
-
ObjectDependencyHierarchy
- Inherited Members
-
Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
DependencyHierarchy()
Initializes a new instance of the DependencyHierarchy class.
public DependencyHierarchy()
Properties
DependentModelEntities
Gets or sets the dependent model entities.
public Stack<KeyValuePair<Relation, Dependency>> DependentModelEntities { get; set; }
Property Value
- Stack<KeyValuePair<Relation, Dependency>>
IsRelationDependencyHierarchyLeaf
Gets a value indicating whether this instance is relation dependency hierarchy leaf.
public bool IsRelationDependencyHierarchyLeaf { get; }
Property Value
- Boolean
RelationDependencyHierarchy
Gets or sets the relation dependency hierarchy.
public DependencyHierarchy RelationDependencyHierarchy { get; set; }
Property Value
- DependencyHierarchy
The relation dependency hierarchy.
SourceModelEntity
Gets or sets the source model entity.
public ModelEntityBase SourceModelEntity { get; set; }
Property Value
- ModelEntityBase
The source model entity.
TargetModelEntity
Gets or sets the base entity.
public ModelEntityBase TargetModelEntity { get; set; }
Property Value
Remarks
The base entity is the entity on which all other entities depend.
Methods
FlattenDependencyHierarchy()
Flattens the dependency hierarchy.
public IEnumerable<Dependency> FlattenDependencyHierarchy()
Returns
- IEnumerable<Dependency>
A list of Dependency instances ordered descending by their hierarchy level.
ToString()
Returns a System.String that represents this instance.
public override string ToString()
Returns
- String
A System.String that represents this instance.