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




KellermanSoftware.NetDataAccessLayer Namespace > ITableCrud Interface > Delete Method : Delete(String,String,Object) Method
The name of the table
The name of the primary key in the table
An object instance
Delete a record by the primary key
Syntax
Overloads Function Delete( _
   ByVal tableName As String, _
   ByVal primaryKey As String, _
   ByVal entity As Object _
) As Integer
Dim instance As ITableCrud
Dim tableName As String
Dim primaryKey As String
Dim entity As Object
Dim value As Integer
 
value = instance.Delete(tableName, primaryKey, entity)
int Delete( 
   string tableName,
   string primaryKey,
   object entity
)
int Delete( 
   string* tableName,
   string* primaryKey,
   Object* entity
) 
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
An object instance
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

ITableCrud Interface
ITableCrud Members
Overload List