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.10.0.0 (5.10.0)
Syntax public static MultiValueDictionary<string, DBForeignKeyConstraint> GetAllForeignKeyConstraintsTargetedByModelRelationships(
Dictionary<NormalRelationshipEdge, Pair<DBForeignKeyConstraint, DBUniqueConstraint>> relationshipsToMetaDataElements,
Dictionary<InheritanceEdge, DBForeignKeyConstraint> inheritanceEdgesToMetaDataElements
)
Public Shared Function GetAllForeignKeyConstraintsTargetedByModelRelationships (
relationshipsToMetaDataElements As Dictionary(Of NormalRelationshipEdge, Pair(Of DBForeignKeyConstraint, DBUniqueConstraint)),
inheritanceEdgesToMetaDataElements As Dictionary(Of InheritanceEdge, DBForeignKeyConstraint)
) As MultiValueDictionary(Of String, DBForeignKeyConstraint)
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,
DBForeignKeyConstraintMulti-value dictionary with FK constraints or an empty hashset if none found, per group.
See Also