Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ObjectContext::DeleteObject Method (Object^)

Entity Framework 6.0
 

Marks an object for deletion.

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

public:
virtual void DeleteObject(
	Object^ entity
)

Parameters

entity
Type: System::Object^

An object that specifies the entity to delete. The object can be in any state except Detached .

Return to top
Show: