DbContext.Entry Method

Definition

Overloads

Entry(Object)

Gets a DbEntityEntry object for the given entity providing access to information about the entity and the ability to perform actions on the entity.

Entry<TEntity>(TEntity)

Gets a DbEntityEntry<TEntity> object for the given entity providing access to information about the entity and the ability to perform actions on the entity.

Entry(Object)

Gets a DbEntityEntry object for the given entity providing access to information about the entity and the ability to perform actions on the entity.

public System.Data.Entity.Infrastructure.DbEntityEntry Entry (object entity);
member this.Entry : obj -> System.Data.Entity.Infrastructure.DbEntityEntry
Public Function Entry (entity As Object) As DbEntityEntry

Parameters

entity
Object

The entity.

Returns

DbEntityEntry

An entry for the entity.

Applies to

Entry<TEntity>(TEntity)

Gets a DbEntityEntry<TEntity> object for the given entity providing access to information about the entity and the ability to perform actions on the entity.

public System.Data.Entity.Infrastructure.DbEntityEntry<TEntity> Entry<TEntity> (TEntity entity) where TEntity : class;
member this.Entry : 'Entity -> System.Data.Entity.Infrastructure.DbEntityEntry<'Entity (requires 'Entity : null)> (requires 'Entity : null)
Public Function Entry(Of TEntity As Class) (entity As TEntity) As DbEntityEntry(Of TEntity)

Type Parameters

TEntity

The type of the entity.

Parameters

entity
TEntity

The entity.

Returns

DbEntityEntry<TEntity>

An entry for the entity.

Applies to