Table<TEntity>.ITable.DeleteOnSubmit Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
For a description of this member, see DeleteOnSubmit.
Namespace: System.Data.Linq
Assembly: System.Data.Linq (in System.Data.Linq.dll)
Syntax
'Declaration
Private Sub DeleteOnSubmit ( _
entity As Object _
) Implements ITable.DeleteOnSubmit
void ITable.DeleteOnSubmit(
Object entity
)
Parameters
- entity
Type: System.Object
The entity to be removed.
Implements
Remarks
This member is an explicit interface member implementation. It can be used only when the Table<TEntity> instance is cast to an ITable interface.
Note: |
---|
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. |
Version Information
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.