DbContext.Entry Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
An entry for the entity.
Applies to
Entity Framework