Table of Contents

Class CompositeValueFactory

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 CompositeValueFactory : IDependentKeyValueFactory<IReadOnlyList<object?>>, IDependentKeyValueFactory
Inheritance
CompositeValueFactory
Implements
Derived
Inherited Members

Constructors

CompositeValueFactory(IReadOnlyList<IProperty>)

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 CompositeValueFactory(IReadOnlyList<IProperty> properties)

Parameters

properties IReadOnlyList<IProperty>

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 virtual IEqualityComparer<IReadOnlyList<object?>> EqualityComparer { get; }

Property Value

IEqualityComparer<IReadOnlyList<object>>

Properties

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 IReadOnlyList<IProperty> Properties { get; }

Property Value

IReadOnlyList<IProperty>

Methods

CreateDependentEquatableKey(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? CreateDependentEquatableKey(IUpdateEntry entry, bool fromOriginalValues)

Parameters

entry IUpdateEntry
fromOriginalValues bool

Returns

object

CreateEqualityComparer(IReadOnlyList<IProperty>)

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 static IEqualityComparer<IReadOnlyList<object?>> CreateEqualityComparer(IReadOnlyList<IProperty> properties)

Parameters

properties IReadOnlyList<IProperty>

Returns

IEqualityComparer<IReadOnlyList<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

TryCreateFromBuffer(in ValueBuffer, out 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 bool TryCreateFromBuffer(in ValueBuffer valueBuffer, out IReadOnlyList<object?>? key)

Parameters

valueBuffer ValueBuffer
key IReadOnlyList<object>

Returns

bool

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

Parameters

entry IUpdateEntry
key IReadOnlyList<object>

Returns

bool

TryCreateFromEntry(IUpdateEntry, Func<IUpdateEntry, IProperty, object?>, out 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.

protected virtual bool TryCreateFromEntry(IUpdateEntry entry, Func<IUpdateEntry, IProperty, object?> getValue, out IReadOnlyList<object?>? key)

Parameters

entry IUpdateEntry
getValue Func<IUpdateEntry, IProperty, object>
key IReadOnlyList<object>

Returns

bool

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

Parameters

entry IUpdateEntry
key IReadOnlyList<object>

Returns

bool

TryCreateFromPreStoreGeneratedCurrentValues(IUpdateEntry, out 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 bool TryCreateFromPreStoreGeneratedCurrentValues(IUpdateEntry entry, out IReadOnlyList<object?>? key)

Parameters

entry IUpdateEntry
key IReadOnlyList<object>

Returns

bool

TryCreateFromRelationshipSnapshot(IUpdateEntry, out 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 bool TryCreateFromRelationshipSnapshot(IUpdateEntry entry, out IReadOnlyList<object?>? key)

Parameters

entry IUpdateEntry
key IReadOnlyList<object>

Returns

bool