System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (16)
29private readonly KeyToListMap<EntitySetBase, ReferentialConstraint> _sourceMap;
35private readonly KeyToListMap<EntitySetBase, ReferentialConstraint> _targetMap;
83private static void InitializeForeignKeyMaps(HashSet<EntityContainer> containers, HashSet<EntitySet> tables, out KeyToListMap<EntitySetBase, ReferentialConstraint> sourceMap, out KeyToListMap<EntitySetBase, ReferentialConstraint> targetMap)
85sourceMap = new KeyToListMap<EntitySetBase, ReferentialConstraint>(EqualityComparer<EntitySetBase>.Default);
86targetMap = new KeyToListMap<EntitySetBase, ReferentialConstraint>(EqualityComparer<EntitySetBase>.Default);
108ReferentialConstraint fkConstraint = null;
109foreach (ReferentialConstraint constraint in associationType.ReferentialConstraints)
200foreach (ReferentialConstraint fkConstraint in _sourceMap.EnumerateValues(command.Table))
231foreach (ReferentialConstraint fkConstraint in _targetMap.EnumerateValues(command.Table))
282foreach (ReferentialConstraint fkConstraint in _targetMap.EnumerateValues(command.Table))
305foreach (ReferentialConstraint fkConstraint in _sourceMap.EnumerateValues(command.Table))
390private ForeignKeyValue(ReferentialConstraint metadata, PropagatorResult record,
432internal static bool TryCreateTargetKey(ReferentialConstraint metadata, PropagatorResult record, bool isInsert, out ForeignKeyValue key)
450internal static bool TryCreateSourceKey(ReferentialConstraint metadata, PropagatorResult record, bool isInsert, out ForeignKeyValue key)
463internal readonly ReferentialConstraint Metadata;
System\Data\Metadata\Edm\EntitySet.cs (9)
42private ReadOnlyCollection<Tuple<AssociationSet, ReferentialConstraint>> _foreignKeyDependents;
43private ReadOnlyCollection<Tuple<AssociationSet, ReferentialConstraint>> _foreignKeyPrincipals;
69internal ReadOnlyCollection<Tuple<AssociationSet, ReferentialConstraint>> ForeignKeyDependents
85internal ReadOnlyCollection<Tuple<AssociationSet, ReferentialConstraint>> ForeignKeyPrincipals
132var dependents = new List<Tuple<AssociationSet, ReferentialConstraint>>();
133var principals = new List<Tuple<AssociationSet, ReferentialConstraint>>();
142ReferentialConstraint constraint = associationSet.ElementType.ReferentialConstraints[0];
147dependents.Add(new Tuple<AssociationSet, ReferentialConstraint>(associationSet, constraint));
153principals.Add(new Tuple<AssociationSet, ReferentialConstraint>(associationSet, constraint));