IUpdateAdapter.TryGetEntry(IKey, Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework