RecroTrackExecuteUpdateAsync Method
Creating a Custom Entry in RecroTrack
Namespace: Recrovit.RecroGridFrameworkAssembly: Recrovit.RecroGrid (in Recrovit.RecroGrid.dll) Version: 8.9.0.24.1113.1
public Task<int> ExecuteUpdateAsync(
string entityTypeName,
Dictionary<string, Object> setParams,
string where,
Dictionary<string, Object> whereParams = null,
int? version = null
)
- 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.
TaskInt32
A task that represents the asynchronous operation.
The task result contains the number of rows affected.
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;
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);