Knight Data Access Layer
Update(String,String,Object,Dictionary<String,Object>) Method




KellermanSoftware.NetDataAccessLayer Namespace > TableCrud Class > Update Method : Update(String,String,Object,Dictionary<String,Object>) Method
The name of the table
The name of the primary key in the table
The primary key value to search for
The parameters to use for the where clause
Update a record in the database by the primary key
Syntax
Public Overloads Function Update( _
   ByVal tableName As String, _
   ByVal primaryKey As String, _
   ByVal primaryKeyValue As Object, _
   ByVal parameters As Dictionary(Of String,Object) _
) As Integer
Dim instance As TableCrud
Dim tableName As String
Dim primaryKey As String
Dim primaryKeyValue As Object
Dim parameters As Dictionary(Of String,Object)
Dim value As Integer
 
value = instance.Update(tableName, primaryKey, primaryKeyValue, parameters)

Parameters

tableName
The name of the table
primaryKey
The name of the primary key in the table
primaryKeyValue
The primary key value to search for
parameters
The parameters to use for the where clause

Return Value

Affected records
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