5 instantiations of CompositeKey
System.Data.Entity (5)
System\Data\Mapping\Update\Internal\CompositeKey.cs (1)
64
return new
CompositeKey
(mergedKeyValues);
System\Data\Mapping\Update\Internal\Propagator.JoinPropagator.cs (1)
489
return new
CompositeKey
(keyValues);
System\Data\Mapping\Update\Internal\TableChangeProcessor.cs (2)
189
CompositeKey key = new
CompositeKey
(GetKeyConstants(row));
209
CompositeKey otherKey = new
CompositeKey
(GetKeyConstants(other));
System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (1)
418
Key = new
CompositeKey
(keyValues);
48 references to CompositeKey
System.Data.Entity (48)
System\Data\Mapping\Update\Internal\CompositeKey.cs (7)
46
internal static IEqualityComparer<
CompositeKey
> CreateComparer(KeyManager keyManager)
56
internal
CompositeKey
Merge(KeyManager keyManager,
CompositeKey
other)
71
private class CompositeKeyComparer : IEqualityComparer<
CompositeKey
>
81
public bool Equals(
CompositeKey
left,
CompositeKey
right)
125
public int GetHashCode(
CompositeKey
key)
System\Data\Mapping\Update\Internal\Propagator.JoinPropagator.cs (22)
23
using JoinDictionary = Dictionary<
CompositeKey
, Tuple<
CompositeKey
, PropagatorResult>>;
108
private readonly
CompositeKey
m_leftPlaceholderKey;
109
private readonly
CompositeKey
m_rightPlaceholderKey;
271
foreach (
CompositeKey
key in allKeys)
277
result.Placeholder = CreateResultTuple(Tuple.Create((
CompositeKey
)null, m_left.Placeholder), Tuple.Create((
CompositeKey
)null, m_right.Placeholder), result);
287
private void Propagate(
CompositeKey
key, ChangeNode result, JoinDictionary leftDeletes, JoinDictionary leftInserts,
291
Tuple<
CompositeKey
, PropagatorResult> leftInsert = null;
292
Tuple<
CompositeKey
, PropagatorResult> leftDelete = null;
293
Tuple<
CompositeKey
, PropagatorResult> rightInsert = null;
294
Tuple<
CompositeKey
, PropagatorResult> rightDelete = null;
317
Action<Tuple<
CompositeKey
, PropagatorResult>> addStateEntries = (r) =>
392
private PropagatorResult CreateResultTuple(Tuple<
CompositeKey
, PropagatorResult> left, Tuple<
CompositeKey
, PropagatorResult> right, ChangeNode result)
395
CompositeKey
leftKey = left.Item1;
396
CompositeKey
rightKey = right.Item1;
404
CompositeKey
mergedKey = leftKey.Merge(m_parent.m_updateTranslator.KeyManager, rightKey);
439
private PropagatorResult LeftPlaceholder(
CompositeKey
key, PopulateMode mode)
450
private PropagatorResult RightPlaceholder(
CompositeKey
key, PopulateMode mode)
472
CompositeKey
key = ExtractKey(instance, keySelectors, m_parent);
480
private static
CompositeKey
ExtractKey(PropagatorResult change, ReadOnlyCollection<DbExpression> keySelectors, Propagator parent)
System\Data\Mapping\Update\Internal\Propagator.JoinPropagator.SubstitutingCloneVisitor.cs (2)
66
internal static PropagatorResult Populate(PropagatorResult placeholder,
CompositeKey
key,
67
CompositeKey
placeholderKey, PopulateMode mode, UpdateTranslator translator)
System\Data\Mapping\Update\Internal\TableChangeProcessor.cs (12)
106
Set<
CompositeKey
> keys = new Set<
CompositeKey
>(compiler.m_translator.KeyComparer);
110
Dictionary<
CompositeKey
, PropagatorResult> deleteResults = ProcessKeys(compiler, changeNode.Deleted, keys);
111
Dictionary<
CompositeKey
, PropagatorResult> insertResults = ProcessKeys(compiler, changeNode.Inserted, keys);
116
foreach (
CompositeKey
key in keys)
179
private Dictionary<
CompositeKey
, PropagatorResult> ProcessKeys(UpdateCompiler compiler, List<PropagatorResult> changes, Set<
CompositeKey
> keys)
181
Dictionary<
CompositeKey
, PropagatorResult> map = new Dictionary<
CompositeKey
, PropagatorResult>(
189
CompositeKey
key = new CompositeKey(GetKeyConstants(row));
206
private void DiagnoseKeyCollision(UpdateCompiler compiler, PropagatorResult change,
CompositeKey
key, PropagatorResult other)
209
CompositeKey
otherKey = new CompositeKey(GetKeyConstants(other));
System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (3)
468
internal readonly
CompositeKey
Key;
481
private readonly IEqualityComparer<
CompositeKey
> _baseComparer;
483
internal ForeignKeyValueComparer(IEqualityComparer<
CompositeKey
> baseComparer)
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (2)
80
KeyComparer =
CompositeKey
.CreateComparer(KeyManager);
156
internal readonly IEqualityComparer<
CompositeKey
> KeyComparer;