Share via


DbDataController<TContext>.InsertEntity Method

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

Inserts an entity into the DbContext, ensuring its EntityState is Added.

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

Syntax

'Declaration
Protected Overridable Sub InsertEntity ( _
    entity As Object _
)
protected virtual void InsertEntity(
    Object entity
)
protected:
virtual void InsertEntity(
    Object^ entity
)
abstract InsertEntity : 
        entity:Object -> unit 
override InsertEntity : 
        entity:Object -> unit 
protected function InsertEntity(
    entity : Object
)

Parameters

See Also

Reference

DbDataController<TContext> Class

System.Web.Http.Data.EntityFramework Namespace