RecroTrack.ExecuteUpdateAsync Method

Creating a Custom Entry in RecroTrack

Definition

Namespace: Recrovit.RecroGridFramework
Assembly: Recrovit.RecroGrid (in Recrovit.RecroGrid.dll) Version: 8.9.0.24.1113.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  Dictionary<String, Object>
The parameters.
where  String
The where.
whereParams  Dictionary<String, Object>  (Optional)
The where parameters.
version  Nullable<Int32>  (Optional)
The version.

Return Value

Task<Int32>
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