LinqToEntitiesDataController<TContext>.UpdateEntity<TEntity> Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Updates an entity in the ObjectContext, ensuring it is treated as a modified entity.

Namespace:  System.Web.Http.Data.EntityFramework
Assembly:  System.Web.Http.Data.EntityFramework (in System.Web.Http.Data.EntityFramework.dll)

Syntax

'Declaration
Protected Overridable Sub UpdateEntity(Of TEntity As Class) ( _
    entity As TEntity _
)
protected virtual void UpdateEntity<TEntity>(
    TEntity entity
)
where TEntity : class
protected:
generic<typename TEntity>
where TEntity : ref class
virtual void UpdateEntity(
    TEntity entity
)
abstract UpdateEntity : 
        entity:'TEntity -> unit  when 'TEntity : not struct
override UpdateEntity : 
        entity:'TEntity -> unit  when 'TEntity : not struct
JScript does not support generic types or methods.

Type Parameters

  • TEntity
    The entity type.

Parameters

  • entity
    Type: TEntity
    The entity to be updated.

See Also

Reference

LinqToEntitiesDataController<TContext> Class

System.Web.Http.Data.EntityFramework Namespace