IDataApiUpdate Method

Update an existing Data Object.

Definition

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
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