Click or drag to resize

ApplicationUtils.GetAllForeignKeyConstraintsTargetedByModelRelationships Method

Gets all foreign key constraints targeted by model relationships, grouped per group name of the elements targeting the fk constraint. If both sides are in different groups, one is picked, as it will not matter in that case: visual grouping doesn't limit on groups, and project per group will cause errors in that situation anyway.

Namespace:  SD.LLBLGen.Pro.ApplicationCore
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.8.0.0 (5.8.21.0208)
Syntax
public static MultiValueDictionary<string, DBForeignKeyConstraint> GetAllForeignKeyConstraintsTargetedByModelRelationships(
	Dictionary<NormalRelationshipEdge, Pair<DBForeignKeyConstraint, DBUniqueConstraint>> relationshipsToMetaDataElements,
	Dictionary<InheritanceEdge, DBForeignKeyConstraint> inheritanceEdgesToMetaDataElements
)

Parameters

relationshipsToMetaDataElements
Type: System.Collections.Generic.Dictionary<NormalRelationshipEdge, Pair<DBForeignKeyConstraint, DBUniqueConstraint>>
The relationships to meta data elements.
inheritanceEdgesToMetaDataElements
Type: System.Collections.Generic.Dictionary<InheritanceEdge, DBForeignKeyConstraint>
The inheritance edges to meta data elements.

Return Value

Type: MultiValueDictionary<String, DBForeignKeyConstraint>
Multi-value dictionary with FK constraints or an empty hashset if none found, per group.
See Also