Knight Data Access Layer
TruncateTable<T>() Method




KellermanSoftware.NetDataAccessLayer Namespace > DataHelper Class > TruncateTable Method : TruncateTable<T>() Method
Delete all the records from a table
Syntax
Public Overloads Function TruncateTable(Of T As {Class, New})() As Long
Dim instance As DataHelper
Dim value As Long
 
value = instance.TruncateTable(Of T)()
public long TruncateTable<T>()
where T: class, new()
public: long TruncateTable<T>(); 
where T: ref class, gcnew()
public:
int64 TruncateTablegeneric<typename T>
(); 
where T: ref class, gcnew()

Type Parameters

T
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

DataHelper Class
DataHelper Members
Overload List