CollectionEntry<TEntity,TRelatedEntity>.FindEntry(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.
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
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