Knight Data Access Layer
Delete(String,String,Object) Method




KellermanSoftware.NetDataAccessLayer Namespace > TableCrud Class > Delete Method : Delete(String,String,Object) Method
The name of the table
The name of the primary key in the table
The entity to delete
Delete a record by the primary key
Syntax
Public Overloads Function Delete( _
   ByVal tableName As String, _
   ByVal primaryKey As String, _
   ByVal entity As Object _
) As Integer
Dim instance As TableCrud
Dim tableName As String
Dim primaryKey As String
Dim entity As Object
Dim value As Integer
 
value = instance.Delete(tableName, primaryKey, entity)
public int Delete( 
   string tableName,
   string primaryKey,
   object entity
)
public: int Delete( 
   string* tableName,
   string* primaryKey,
   Object* entity
) 
public:
int Delete( 
   String^ tableName,
   String^ primaryKey,
   Object^ entity
) 

Parameters

tableName
The name of the table
primaryKey
The name of the primary key in the table
entity
The entity to delete
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

TableCrud Class
TableCrud Members
Overload List