Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Entry(TEntity) Method (TEntity)
Collapse the table of content
Expand the table of content

DbContext.Entry(TEntity) Method (TEntity)

Entity Framework 5.0

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.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

JScript does not support generic types and methods.

Type Parameters


The type of the entity.


Type: TEntity

The entity.

Return Value

Type: System.Data.Entity.Infrastructure.DbEntityEntry(TEntity)
An entry for the entity.
© 2015 Microsoft