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




KellermanSoftware.NetDataAccessLayer Namespace > ObjectCrud Class > DeleteWithChildren Method : DeleteWithChildren<T>(T) Method
Generic class type
An object instance
Delete the corresponding record in the database and all its children
Syntax
Public Overloads Function DeleteWithChildren(Of T As {Class, New})( _
   ByVal entity As T _
) As Integer
Dim instance As ObjectCrud
Dim entity As T
Dim value As Integer
 
value = instance.DeleteWithChildren(Of T)(entity)
public int DeleteWithChildren<T>( 
   T entity
)
where T: class, new()
public: int DeleteWithChildren<T>( 
   T* entity
) 
where T: ref class, gcnew()
public:
int DeleteWithChildrengeneric<typename T>
( 
   T^ entity
) 
where T: ref class, gcnew()

Parameters

entity
An object instance

Type Parameters

T
Generic class type
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