Table of Contents

Class DependentKeyValueFactory<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 abstract class DependentKeyValueFactory<TKey> where TKey : notnull

Type Parameters

TKey
Inheritance
DependentKeyValueFactory<TKey>
Derived
Inherited Members

Constructors

DependentKeyValueFactory(IForeignKey, IPrincipalKeyValueFactory<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.

protected DependentKeyValueFactory(IForeignKey foreignKey, IPrincipalKeyValueFactory<TKey> principalKeyValueFactory)

Parameters

foreignKey IForeignKey
principalKeyValueFactory IPrincipalKeyValueFactory<TKey>

Properties

EqualityComparer

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 abstract IEqualityComparer<TKey> EqualityComparer { get; }

Property Value

IEqualityComparer<TKey>

Methods

CreateDependentEquatableKey(IUpdateEntry, bool)

Creates an equatable key object from the foreign key values in the given entry.

public virtual object? CreateDependentEquatableKey(IUpdateEntry entry, bool fromOriginalValues)

Parameters

entry IUpdateEntry

The entry tracking an entity instance.

fromOriginalValues bool

Whether the original or current values should be used.

Returns

object

The key object.

CreatePrincipalEquatableKey(IUpdateEntry, 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 object CreatePrincipalEquatableKey(IUpdateEntry entry, bool fromOriginalValues)

Parameters

entry IUpdateEntry
fromOriginalValues bool

Returns

object

TryCreateFromCurrentValues(IUpdateEntry, out 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 abstract bool TryCreateFromCurrentValues(IUpdateEntry entry, out TKey? key)

Parameters

entry IUpdateEntry
key TKey

Returns

bool

TryCreateFromOriginalValues(IUpdateEntry, out 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 abstract bool TryCreateFromOriginalValues(IUpdateEntry entry, out TKey? key)

Parameters

entry IUpdateEntry
key TKey

Returns

bool