RecroGridDynTEntityOnDeleteAsync Method

Deletes the entity.

Definition

Namespace: Recrovit.RecroGridFramework
Assembly: Recrovit.RecroGrid (in Recrovit.RecroGrid.dll) Version: 8.11.0.24.1208.1
C#
protected virtual Task<bool> OnDeleteAsync(
	IRGDataContext context,
	TEntity dataRec,
	RGClientParam param,
	RGUIMessages messages
)

Parameters

context  IRGDataContext
The context.
dataRec  TEntity
The data record.
param  RGClientParam
A kliensről érkező paraméterek.
messages  RGUIMessages
A kliensnek küldendő üzenetek.

Return Value

TaskBoolean
true if the deletion succeeded, otherwise false.

Remarks

By default, if the entity implements the IRecroGridDelete interface, then the RecroGridDelete(IRGDataContext, RGClientParam, RGUIMessages) method is also executed.

Example

C#
protected override Task<bool> OnDeleteRecAsync(RecroTrack tracking, Person dataRec, RGClientParam arg, RGUIMessages messages)
{
    //Invoke IRecroGridDelete
    return base.OnDeleteRecAsync(tracking, dataRec, arg, messages);
}

See Also