Export (0) Print
Expand All

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)

public DbEntityEntry<TEntity> Entry<TEntity>(
	TEntity entity
)
where TEntity : class

Type Parameters

TEntity

The type of the entity.

Parameters

entity
Type: TEntity

The entity.

Return Value

Type: System.Data.Entity.Infrastructure.DbEntityEntry<TEntity>
An entry for the entity.
Show:
© 2014 Microsoft