DbContext.Entry(Of TEntity) Method (TEntity)

Entity Framework 5.0

Gets a DbEntityEntry(Of 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)

'Declaration
Public Function Entry(Of TEntity As Class) ( _
	entity As TEntity _
) As DbEntityEntry(Of TEntity)
'Usage
Dim instance As DbContext 
Dim entity As TEntity
Dim returnValue As DbEntityEntry(Of TEntity)

returnValue = instance.Entry(entity)

Type Parameters

TEntity

The type of the entity.

Parameters

entity
Type: TEntity

The entity.

Return Value

Type: System.Data.Entity.Infrastructure.DbEntityEntry(Of TEntity)
An entry for the entity.
Show: