Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DeleteOnSubmit Method

ITable.DeleteOnSubmit Method

Puts an entity from this table into a pending delete state.

Namespace:  System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

void DeleteOnSubmit(
	Object entity
)

Parameters

entity
Type: System.Object

The entity to be removed.

Disconnected entities must be attached before they can be deleted. Call SubmitChanges to perform the actual deletion in the database.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft