1 write to KeyManager
System.Data.Entity (1)
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
79
KeyManager
= new KeyManager(this);
31 references to KeyManager
System.Data.Entity (31)
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (1)
59
foreach (int principal in translator.
KeyManager
.GetPrincipals(identifier))
System\Data\Mapping\Update\Internal\ExtractorMetadata.cs (4)
146
identifier = m_translator.
KeyManager
.GetKeyIdentifierForMemberOffset(key, keyOrdinal, ((EntityType)m_type).KeyMembers.Count);
150
identifier = m_translator.
KeyManager
.GetKeyIdentifierForMember(key, record.GetName(ordinal), useCurrentValues);
214
int keyIdentifier = m_translator.
KeyManager
.GetKeyIdentifierForMemberOffset(entityKey, ordinal, keyRowType.Properties.Count);
271
m_translator.
KeyManager
.RegisterIdentifierOwner(result);
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (3)
137
object parameterValue = translator.
KeyManager
.GetPrincipalValue(result);
150
foreach (int principal in translator.
KeyManager
.GetPrincipals(identifier))
183
if (translator.
KeyManager
.HasPrincipals(identifier))
System\Data\Mapping\Update\Internal\Propagator.JoinPropagator.cs (1)
404
CompositeKey mergedKey = leftKey.Merge(m_parent.m_updateTranslator.
KeyManager
, rightKey);
System\Data\Mapping\Update\Internal\SourceInterpreter.cs (2)
73
if (m_translator.
KeyManager
.TryGetIdentifierOwner(source.Identifier, out owner) &&
83
foreach (IEntityStateEntry stateEntry in m_translator.
KeyManager
.GetDependentStateEntries(source.Identifier))
System\Data\Mapping\Update\Internal\TableChangeProcessor.cs (1)
208
KeyManager keyManager = compiler.m_translator.
KeyManager
;
System\Data\Mapping\Update\Internal\UpdateCommand.cs (2)
167
foreach (int principal in translator.
KeyManager
.GetDirectReferences(property.Identifier))
170
if (translator.
KeyManager
.TryGetIdentifierOwner(principal, out owner) &&
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (3)
212
m_translator.
KeyManager
.GetPrincipalValue(propertyResult));
258
if (m_translator.
KeyManager
.HasPrincipals(identifier))
444
object principalValue = m_translator.
KeyManager
.GetPrincipalValue(value);
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (14)
80
KeyComparer = CompositeKey.CreateComparer(
KeyManager
);
196
int principalIdentifier = this.
KeyManager
.GetKeyIdentifierForMemberOffset(principalKey, principalOffset, principalKeyMemberCount);
197
int dependentIdentifier = this.
KeyManager
.GetKeyIdentifierForMemberOffset(dependentKey, dependentOffset, dependentKeyMemberCount);
200
this.
KeyManager
.AddReferentialConstraint(stateEntry, dependentIdentifier, principalIdentifier);
281
else if (currentValues && this.
KeyManager
.TryGetTempKey(principalKey, out tempKey))
308
int principalIdentifier = this.
KeyManager
.GetKeyIdentifierForMemberOffset(principalKey, principalOffset, principalKeyMemberCount);
316
dependentIdentifier = this.
KeyManager
.GetKeyIdentifierForMemberOffset(dependentKey, dependentOffset, dependentKeyMemberCount);
320
dependentIdentifier = this.
KeyManager
.GetKeyIdentifierForMember(dependentKey, dependentProperty.Name, currentValues);
335
this.
KeyManager
.AddReferentialConstraint(stateEntry, dependentIdentifier, principalIdentifier);
427
this.
KeyManager
.ValidateReferentialIntegrityGraphAcyclic();
478
!
KeyManager
.TryGetIdentifierOwner(generatedValue.Key.Identifier, out context))
492
foreach (int dependent in this.
KeyManager
.GetDependents(context.Identifier))
494
if (this.
KeyManager
.TryGetIdentifierOwner(dependent, out context))
843
this.
KeyManager
.RegisterKeyValueForAddedEntity(addedEntry);