Table of Contents

Class SimpleNullablePrincipalRowForeignKeyValueFactory<TKey, TNonNullableKey, TForeignKey>

Namespace
Microsoft.EntityFrameworkCore.Update.Internal
Assembly
Microsoft.EntityFrameworkCore.Relational.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 SimpleNullablePrincipalRowForeignKeyValueFactory<TKey, TNonNullableKey, TForeignKey> : RowForeignKeyValueFactory<TKey, TForeignKey>, IRowForeignKeyValueFactory<TKey>, IRowForeignKeyValueFactory where TNonNullableKey : struct

Type Parameters

TKey
TNonNullableKey
TForeignKey
Inheritance
RowForeignKeyValueFactory<TKey, TForeignKey>
SimpleNullablePrincipalRowForeignKeyValueFactory<TKey, TNonNullableKey, TForeignKey>
Implements
Inherited Members

Constructors

SimpleNullablePrincipalRowForeignKeyValueFactory(IForeignKeyConstraint, IColumn, ColumnAccessors, IValueConverterSelector)

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 SimpleNullablePrincipalRowForeignKeyValueFactory(IForeignKeyConstraint foreignKey, IColumn column, ColumnAccessors columnAccessors, IValueConverterSelector valueConverterSelector)

Parameters

foreignKey IForeignKeyConstraint
column IColumn
columnAccessors ColumnAccessors
valueConverterSelector IValueConverterSelector

Properties

EqualityComparer

public override IEqualityComparer<TKey> EqualityComparer { get; }

Property Value

IEqualityComparer<TKey>

Methods

TryCreateDependentKeyValue(IReadOnlyModificationCommand, bool, out TKey?)

public override bool TryCreateDependentKeyValue(IReadOnlyModificationCommand command, bool fromOriginalValues, out TKey? key)

Parameters

command IReadOnlyModificationCommand
fromOriginalValues bool
key TKey

Returns

bool

TryCreateDependentKeyValue(IDictionary<string, object?>, out TKey?)

public override bool TryCreateDependentKeyValue(IDictionary<string, object?> keyPropertyValues, out TKey? key)

Parameters

keyPropertyValues IDictionary<string, object>
key TKey

Returns

bool

TryCreateDependentKeyValue(object?[], out TKey?)

public override bool TryCreateDependentKeyValue(object?[] keyValues, out TKey? key)

Parameters

keyValues object[]
key TKey

Returns

bool