Click or drag to resize
ApplicationUtilsGetAllForeignKeyConstraintsTargetedByModelRelationships 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.1.0.0 (5.1.0)
Syntax
public static MultiValueDictionary<string, DBForeignKeyConstraint> GetAllForeignKeyConstraintsTargetedByModelRelationships(
	Dictionary<NormalRelationshipEdge, Pair<DBForeignKeyConstraint, DBUniqueConstraint>> relationshipsToMetaDataElements,
	Dictionary<InheritanceEdge, DBForeignKeyConstraint> inheritanceEdgesToMetaDataElements
)

Parameters

relationshipsToMetaDataElements
Type: System.Collections.GenericDictionaryNormalRelationshipEdge, PairDBForeignKeyConstraint, DBUniqueConstraint
The relationships to meta data elements.
inheritanceEdgesToMetaDataElements
Type: System.Collections.GenericDictionaryInheritanceEdge, DBForeignKeyConstraint
The inheritance edges to meta data elements.

Return Value

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