Class SimpleNullableRowForeignKeyValueFactory<TKey, 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 SimpleNullableRowForeignKeyValueFactory<TKey, TForeignKey> : RowForeignKeyValueFactory<TKey, TForeignKey>, IRowForeignKeyValueFactory<TKey>, IRowForeignKeyValueFactory where TKey : struct
Type Parameters
TKeyTForeignKey
- Inheritance
-
RowForeignKeyValueFactory<TKey, TForeignKey>SimpleNullableRowForeignKeyValueFactory<TKey, TForeignKey>
- Implements
- Inherited Members
Constructors
SimpleNullableRowForeignKeyValueFactory(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 SimpleNullableRowForeignKeyValueFactory(IForeignKeyConstraint foreignKey, IColumn column, ColumnAccessors columnAccessors, IValueConverterSelector valueConverterSelector)
Parameters
foreignKeyIForeignKeyConstraintcolumnIColumncolumnAccessorsColumnAccessorsvalueConverterSelectorIValueConverterSelector
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
commandIReadOnlyModificationCommandfromOriginalValuesboolkeyTKey
Returns
TryCreateDependentKeyValue(IDictionary<string, object?>, out TKey)
public override bool TryCreateDependentKeyValue(IDictionary<string, object?> keyPropertyValues, out TKey key)
Parameters
keyPropertyValuesIDictionary<string, object>keyTKey
Returns
TryCreateDependentKeyValue(object?[], out TKey)
public override bool TryCreateDependentKeyValue(object?[] keyValues, out TKey key)
Parameters
keyValuesobject[]keyTKey