Click or drag to resize

InheritanceHierarchiesGraphValidateEdgeForAddition Method

Validates if the edge passed in is addable to this graph structure. The start node and the end node for the are given as well. The same edge is present between startVertex and endVertex and also between endVertex and startVertex if the graph is a nondirected graph, hence the necessity of these two nodes in this routine

Namespace:  SD.LLBLGen.Pro.ApplicationCore.EntityModel
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.9.0.0 (5.9.0)
Syntax
protected override bool ValidateEdgeForAddition(
	InheritanceEdge edgeToAdd,
	EntityDefinition startVertex,
	EntityDefinition endVertex
)

Parameters

edgeToAdd
Type: SD.LLBLGen.Pro.ApplicationCore.EntityModelInheritanceEdge
The edge to validate.
startVertex
Type: SD.LLBLGen.Pro.ApplicationCore.EntityModelEntityDefinition
The start node the edge is starting from.
endVertex
Type: SD.LLBLGen.Pro.ApplicationCore.EntityModelEntityDefinition
The end node the edge is leading to.

Return Value

Type: Boolean
true if the edge can be added, false otherwise. Returning false results in the edge not being added
See Also