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