Share via


IUpdateAdapter.TryGetEntry(IKey, Object[]) Method

Definition

Finds the tracked entity for the given key values.

public Microsoft.EntityFrameworkCore.Update.IUpdateEntry TryGetEntry (Microsoft.EntityFrameworkCore.Metadata.IKey key, object[] keyValues);
public Microsoft.EntityFrameworkCore.Update.IUpdateEntry? TryGetEntry (Microsoft.EntityFrameworkCore.Metadata.IKey key, object?[] keyValues);
abstract member TryGetEntry : Microsoft.EntityFrameworkCore.Metadata.IKey * obj[] -> Microsoft.EntityFrameworkCore.Update.IUpdateEntry
Public Function TryGetEntry (key As IKey, keyValues As Object()) As IUpdateEntry

Parameters

key
IKey

The primary or alternate key to use.

keyValues
Object[]

The key values.

Returns

The entry for the found entity, or null if no entity with these key values is being tracked.

Applies to