2 instantiations of ForeignKeyValue
System.Data.Entity (2)
System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (2)
434key = new ForeignKeyValue(metadata, record, true, isInsert); 452key = new ForeignKeyValue(metadata, record, false, isInsert);
27 references to ForeignKeyValue
System.Data.Entity (27)
System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (27)
180KeyToListMap<ForeignKeyValue, UpdateCommand> predecessors = DetermineForeignKeyPredecessors(); 192private void AddForeignKeyEdges(KeyToListMap<ForeignKeyValue, UpdateCommand> predecessors) 202ForeignKeyValue fk; 203if (ForeignKeyValue.TryCreateSourceKey(fkConstraint, command.CurrentValues, true, out fk)) 208ForeignKeyValue originalFK; 210!ForeignKeyValue.TryCreateSourceKey(fkConstraint, command.OriginalValues, true, out originalFK) || 233ForeignKeyValue fk; 234if (ForeignKeyValue.TryCreateTargetKey(fkConstraint, command.OriginalValues, false, out fk)) 239ForeignKeyValue currentFK; 241!ForeignKeyValue.TryCreateTargetKey(fkConstraint, command.CurrentValues, false, out currentFK) || 272private KeyToListMap<ForeignKeyValue, UpdateCommand> DetermineForeignKeyPredecessors() 274KeyToListMap<ForeignKeyValue, UpdateCommand> predecessors = new KeyToListMap<ForeignKeyValue, UpdateCommand>( 284ForeignKeyValue fk; 285if (ForeignKeyValue.TryCreateTargetKey(fkConstraint, command.CurrentValues, true, out fk)) 290ForeignKeyValue originalFK; 292!ForeignKeyValue.TryCreateTargetKey(fkConstraint, command.OriginalValues, true, out originalFK) || 307ForeignKeyValue fk; 308if (ForeignKeyValue.TryCreateSourceKey(fkConstraint, command.OriginalValues, false, out fk)) 313ForeignKeyValue currentFK; 315!ForeignKeyValue.TryCreateSourceKey(fkConstraint, command.CurrentValues, false, out currentFK) || 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) 479private class ForeignKeyValueComparer : IEqualityComparer<ForeignKeyValue> 488public bool Equals(ForeignKeyValue x, ForeignKeyValue y) 494public int GetHashCode(ForeignKeyValue obj)