Delete the corresponding record in the database and all its children
            
            
            
            
            
            
            
            
            Public Overloads Function DeleteWithChildren(Of  As {Class, New})( _
   ByVal  As  _
) As Integer
             
        
            
            Dim instance As DataHelper
Dim entity As 
Dim value As Integer
 
value = instance.DeleteWithChildren(Of T)(entity)
             
        
            
            public int DeleteWithChildren<>( 
    
)
where T: class, new()
             
        
            
            public: int DeleteWithChildren<>( 
    
) 
where T: ref class, gcnew()
             
        
            
            public:
int DeleteWithChildrengeneric<typename >
( 
    
) 
where T: ref class, gcnew()
             
        
             
        
            Parameters
- entity
 
- The object to delete
 
            Type Parameters
- T
 
- Generic class type
 
            Return Value
The number of records deleted
 
            
            
            
            
            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