Click or drag to resize

IDataApiInc Method

Increase value of an attribute by specified increment amount.

Namespace:  Casewhere.Runtime.DSL.Api
Assembly:  Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax
C#
void Inc(
	string id,
	string attributeName,
	Object value
)

Parameters

id
Type: SystemString
The identifiers of the data object.
attributeName
Type: SystemString
The attribute name of the data object
value
Type: SystemObject
The increment amount of the data object.
Examples
var dataApi = ctx.Use<IDataApi>();
var customerId = ctx.Input["Id"];
var attributeName = "AvailableBalance";
var incrementAmount = 10000;
dataApi.Inc(customerId, attributeName, incrementAmount);
See Also