Table of Contents

Class IdentityMap<TKey>

Namespace
Microsoft.EntityFrameworkCore.ChangeTracking.Internal
Assembly
Microsoft.EntityFrameworkCore.dll

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public class IdentityMap<TKey> : IIdentityMap<TKey>, IIdentityMap where TKey : notnull

Type Parameters

TKey
Inheritance
IdentityMap<TKey>
Implements
Derived
Inherited Members

Constructors

IdentityMap(IKey, IPrincipalKeyValueFactory<TKey>, bool)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public IdentityMap(IKey key, IPrincipalKeyValueFactory<TKey> principalKeyValueFactory, bool sensitiveLoggingEnabled)

Parameters

key IKey
principalKeyValueFactory IPrincipalKeyValueFactory<TKey>
sensitiveLoggingEnabled bool

Properties

Key

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual IKey Key { get; }

Property Value

IKey

PrincipalKeyValueFactory

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

protected virtual IPrincipalKeyValueFactory<TKey> PrincipalKeyValueFactory { get; }

Property Value

IPrincipalKeyValueFactory<TKey>

Methods

Add(InternalEntityEntry)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void Add(InternalEntityEntry entry)

Parameters

entry InternalEntityEntry

Add(IReadOnlyList<object?>, InternalEntityEntry)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void Add(IReadOnlyList<object?> keyValues, InternalEntityEntry entry)

Parameters

keyValues IReadOnlyList<object>
entry InternalEntityEntry

Add(TKey, InternalEntityEntry)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

protected virtual void Add(TKey key, InternalEntityEntry entry)

Parameters

key TKey
entry InternalEntityEntry

AddOrUpdate(InternalEntityEntry)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void AddOrUpdate(InternalEntityEntry entry)

Parameters

entry InternalEntityEntry

All()

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual IEnumerable<InternalEntityEntry> All()

Returns

IEnumerable<InternalEntityEntry>

Clear()

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void Clear()

Contains(IForeignKey, in ValueBuffer)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual bool Contains(IForeignKey foreignKey, in ValueBuffer valueBuffer)

Parameters

foreignKey IForeignKey
valueBuffer ValueBuffer

Returns

bool

Contains(in ValueBuffer)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual bool Contains(in ValueBuffer valueBuffer)

Parameters

valueBuffer ValueBuffer

Returns

bool

FindDependentsMap(IForeignKey)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual IDependentsMap? FindDependentsMap(IForeignKey foreignKey)

Parameters

foreignKey IForeignKey

Returns

IDependentsMap

GetDependentsMap(IForeignKey)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual IDependentsMap GetDependentsMap(IForeignKey foreignKey)

Parameters

foreignKey IForeignKey

Returns

IDependentsMap

Remove(InternalEntityEntry)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void Remove(InternalEntityEntry entry)

Parameters

entry InternalEntityEntry

Remove(TKey, InternalEntityEntry)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

protected virtual void Remove(TKey key, InternalEntityEntry entry)

Parameters

key TKey
entry InternalEntityEntry

RemoveUsingRelationshipSnapshot(InternalEntityEntry)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual void RemoveUsingRelationshipSnapshot(InternalEntityEntry entry)

Parameters

entry InternalEntityEntry

TryGetEntry(InternalEntityEntry)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual InternalEntityEntry? TryGetEntry(InternalEntityEntry entry)

Parameters

entry InternalEntityEntry

Returns

InternalEntityEntry

TryGetEntry(IForeignKey, InternalEntityEntry)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual InternalEntityEntry? TryGetEntry(IForeignKey foreignKey, InternalEntityEntry dependentEntry)

Parameters

foreignKey IForeignKey
dependentEntry InternalEntityEntry

Returns

InternalEntityEntry

TryGetEntry(IReadOnlyList<object?>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual InternalEntityEntry? TryGetEntry(IReadOnlyList<object?> keyValues)

Parameters

keyValues IReadOnlyList<object>

Returns

InternalEntityEntry

TryGetEntry(IReadOnlyList<object?>, bool, out bool)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual InternalEntityEntry? TryGetEntry(IReadOnlyList<object?> keyValues, bool throwOnNullKey, out bool hasNullKey)

Parameters

keyValues IReadOnlyList<object>
throwOnNullKey bool
hasNullKey bool

Returns

InternalEntityEntry

TryGetEntryTyped(TKey)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual InternalEntityEntry? TryGetEntryTyped(TKey keyValue)

Parameters

keyValue TKey

Returns

InternalEntityEntry

TryGetEntryUsingPreStoreGeneratedValues(IForeignKey, InternalEntityEntry)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual InternalEntityEntry? TryGetEntryUsingPreStoreGeneratedValues(IForeignKey foreignKey, InternalEntityEntry dependentEntry)

Parameters

foreignKey IForeignKey
dependentEntry InternalEntityEntry

Returns

InternalEntityEntry

TryGetEntryUsingRelationshipSnapshot(IForeignKey, InternalEntityEntry)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual InternalEntityEntry? TryGetEntryUsingRelationshipSnapshot(IForeignKey foreignKey, InternalEntityEntry dependentEntry)

Parameters

foreignKey IForeignKey
dependentEntry InternalEntityEntry

Returns

InternalEntityEntry