Click or drag to resize

IDataApiUpdate Method

Update an existing Data Object.

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntax
C#
void Update(
	string id,
	Object data,
	bool notifyChange = true
)

Parameters

id  String
Id of the Data Object to be updated.
data  Object
Data to be updated.
notifyChange  Boolean  (Optional)
Skip the data change notification when updating data.
Example
C#
var dataApi = ctx.Use<IDataApi>();
dataApi.Update(orderId, new 
{
    Total = 20,
    BillingAddress = "123 Sunset Blvd"
});
See Also