RecroTrackExecuteUpdateAsync Method

Creating a Custom Entry in RecroTrack

Definition

Namespace: Recrovit.RecroGridFramework
Assembly: Recrovit.RecroGrid (in Recrovit.RecroGrid.dll) Version: 6.6.0.24.0320.1
C#
public Task<int> ExecuteUpdateAsync(
	string entityTypeName,
	Dictionary<string, Object> setParams,
	string where,
	Dictionary<string, Object> whereParams = null,
	int? version = null
)

Parameters

entityTypeName  String
Name of the entity type.
setParams  DictionaryString, Object
The parameters.
where  String
The where.
whereParams  DictionaryString, Object  (Optional)
The where parameters.
version  NullableInt32  (Optional)
The version.

Return Value

TaskInt32
A task that represents the asynchronous operation. The task result contains the number of rows affected.

Remarks

if version == 0, then it doesn't affect the version;
if version > 0, then version = the specified version;
if version == null, then version = version + 1;
C#
Example:
var setParams = new Dictionary<string, object>();
setParams.Add("Quantity", 3);
var whereParams = new Dictionary<string, object>();
whereParams.Add("KszId", newData.KszId)
this.Tracking.ExecuteUpdate(context, "lp_szmtetel", setParams, "lp_szmtetel.KszId=@KszId", whereParams);

See Also