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