Click or drag to resize

MapperEditListExec Method (MapperExecCmds, Int32, Object)

The Exec method provide extended functionality for mappers. See MapperExecCmds for the enumerated list of commands.

Namespace:  NetQuarry.Data.WebMappers
Assembly:  EAP.WebMappers (in EAP.WebMappers.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public override Object Exec(
	MapperExecCmds command,
	int flags,
	params Object[] args
)

Parameters

command
Type: NetQuarry.DataMapperExecCmds
The command to execute.
flags
Type: SystemInt32
Command-specific modifier flags.
args
Type: SystemObject
Command-specific parameters.

Return Value

Type: Object
Command-specific result.

Implements

IMapperExec(MapperExecCmds, Int32, Object)
Examples
public override void RowAfterInsert(IMapper sender, EAPEventArgs e)
{        
    ServiceInfos            svs = appContext.Services;
    IEmailService            mail = (IEmailService)svs.GetServiceInstance("SmtpMail");            
    NetQuarry.Template        tmpl = appContext.Templates[templateName];
    NameValueCollection     nv = sender.Exec(MapperExecCmds.KeyDisplayCollectionGet, 0);
    string                  body = tmpl.Replace(nameValues, NetQuarry.ContentResolution.High);
    string                  subject = tmpl.TextItems.GetText("Subject", "Notification");    

    mail.Send(string.Empty, sendToList, subject, body, true);
}
See Also