DbContext.Entry Method

 

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

NameDescription
System_CAPS_pubmethodEntry(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.

System_CAPS_pubmethodEntry<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.


DbContext.Entry Method (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 DbEntityEntry Entry(
	object entity
)

Parameters

entity
Type: System.Object

The entity.

Return Value

Type: System.Data.Entity.Infrastructure.DbEntityEntry

An entry for the entity.


DbContext.Entry<TEntity> Method (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 DbEntityEntry<TEntity> Entry<TEntity>(
	TEntity entity
)
where TEntity : class

Parameters

entity
Type: TEntity

The entity.

Return Value

Type: System.Data.Entity.Infrastructure.DbEntityEntry<TEntity>

An entry for the entity.

Type Parameters

TEntity

The type of the entity.