DbSet<TEntity>.Entry(TEntity) 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.
Gets an EntityEntry<TEntity> for the given entity. The entry provides access to change tracking information and operations for the entity.
public virtual Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<TEntity> Entry (TEntity entity);
abstract member Entry : 'Entity -> Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<'Entity (requires 'Entity : null)>
override this.Entry : 'Entity -> Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<'Entity (requires 'Entity : null)>
Public Overridable Function Entry (entity As TEntity) As EntityEntry(Of TEntity)
Parameters
- entity
- TEntity
The entity to get the entry for.
Returns
The entry for the given entity.
Remarks
See Accessing tracked entities in EF Core for more information and examples.
Applies to
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Entity Framework