RecroGridETEntityOnDeleteRecAsync Method

Deletes the entity.

Definition

Namespace: Recrovit.RecroGridFramework
Assembly: Recrovit.RecroGrid (in Recrovit.RecroGrid.dll) Version: 6.2.0.24.0102.1
C#
protected virtual Task<bool> OnDeleteRecAsync(
	RecroTrack tracking,
	TEntity dataRec,
	RGClientParam param,
	RGUIMessages messages
)

Parameters

tracking  RecroTrack
RecroTrack object and the context.
dataRec  TEntity
The current entity (data record).
param  RGClientParam
Parameters received from the client.
messages  RGUIMessages
Messages to be sent to the client.

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