Delen via


DbSet<TEntity>.Entry(TEntity) Method

Definition

Gets an EntityEntry<TEntity> for the given entity. The entry provides access to change tracking information and operations for the entity.

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<TEntity> Entry (TEntity entity);
abstract member Entry : 'Entity -> Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<'Entity (requires 'Entity : null)>
override this.Entry : 'Entity -> Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<'Entity (requires 'Entity : null)>
Public Overridable Function Entry (entity As TEntity) As EntityEntry(Of TEntity)

Parameters

entity
TEntity

The entity to get the entry for.

Returns

The entry for the given entity.

Remarks

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

Applies to