Share via


CollectionEntry<TEntity,TRelatedEntity>.FindEntry(Object) Method

Definition

The EntityEntry<TEntity> of an entity this navigation targets.

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<TRelatedEntity> FindEntry (object entity);
public virtual Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<TRelatedEntity>? FindEntry (object entity);
override this.FindEntry : obj -> Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<'RelatedEntity (requires 'RelatedEntity : null)>
Public Overridable Function FindEntry (entity As Object) As EntityEntry(Of TRelatedEntity)

Parameters

entity
Object

The entity to get the entry for.

Returns

EntityEntry<TRelatedEntity>

An entry for an entity that this navigation targets.

Remarks

See Accessing tracked entities in EF Core for more information and examples.

Applies to