Knight Data Access Layer
Delete<T>(T) Method




View with Navigation Tools
KellermanSoftware.NetDataAccessLayer Namespace > ObjectCrud Class > Delete Method : Delete<T>(T) Method
Generic class type
An object instance
Delete the corresponding record in the database
Syntax
Public Overloads Function Delete(Of T As {Class, New})( _
   ByVal entity As T _
) As Integer

Parameters

entity
An object instance

Type Parameters

T
Generic class type

Return Value

The number of records deleted
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ObjectCrud Class
ObjectCrud Members
Overload List