ITable.DeleteOnSubmit Method

Table(Of TEntity).ITable.DeleteOnSubmit Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

For a description of this member, see DeleteOnSubmit.

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

'Declaration
Private Sub DeleteOnSubmit ( _
	entity As Object _
) Implements ITable.DeleteOnSubmit

Parameters

entity
Type: System.Object
The entity to be removed.

Implements

ITable.DeleteOnSubmit(Object)

This member is an explicit interface member implementation. It can be used only when the Table(Of TEntity) instance is cast to an ITable interface.

NoteNote:

   LINQ to SQL does not support or recognize cascade-delete operations. If you want to delete a row in a table that has constraints against it, you must either set the ON DELETE CASCADE rule in the foreign-key constraint in the database, or use your own code to first delete the child objects that prevent the parent object from being deleted. Otherwise, an exception is thrown.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft