Click or drag to resize
DatabasePush Method
Update or Insert data. When doing an insert, the where condition is added as a set field

Namespace:  DataTables
Assembly:  DataTables (in DataTables.dll) Version: 1.6.5.0 (1.6.5.0)
Syntax
C#
public Result Push(
	string table,
	Dictionary<string, Object> set,
	Dictionary<string, Object> where,
	string[] pkey = null
)

Parameters

table
Type: SystemString
Table name to act upon
set
Type: System.Collections.GenericDictionaryString, Object
Dictionary of field names and values to update / set
where
Type: System.Collections.GenericDictionaryString, Object
Where condition for what to update
pkey (Optional)
Type: SystemString
Primary key column names (this is an array for forwards compt, although only the first item in the array is actually used). This doesn't need to be set, but it must be if you want to use the `Result.InsertId()` method.

Return Value

Type: Result
Result instance
See Also