/// <summary> /// Executes the prepared statement for each parameter set provided, or once if there are /// no parameters supplied. /// </summary> /// <param name="contexts"> /// Holds ExecutionContext objects and parameter metadata for execution. There is one /// ExecutionContext for each parameter set to be executed. /// </param> /// <param name="warningListener">Used to post warnings about the execution.</param> public void Execute(ExecutionContexts contexts, IWarningListener warningListener) { LogUtilities.LogFunctionEntrance(Log, contexts, warningListener); //mark all context as success foreach (ExecutionContext context in contexts) { context.Succeeded = true; } }
public void Execute( ExecutionContexts contexts, IWarningListener warningListener) { // TODO(ADO) #11: Implement Query Execution. LogUtilities.LogFunctionEntrance(_log, contexts, warningListener); // The contexts argument provides access to the parameters that were not pushed. // Statement execution is a 3 step process: // 1. Serialize all input parameters into a form that can be consumed by the data // source. If your data source does not support parameter streaming for pushed // parameters, then you will need to re-assemble them from your parameter cache. // See PushParamData. // 2. Send the Execute() message. // 3. Retrieve all output parameters from the server and update the contexts with // their contents. // No action needs to be taken here since the results are static and encapsulated in // ULPersonTable and DSISimpleRowCountResult. }
/// <summary> /// Executes the prepared statement for each parameter set provided, or once if there are /// no parameters supplied. /// </summary> /// <param name="contexts"> /// Holds ExecutionContext objects and parameter metadata for execution. There is one /// ExecutionContext for each parameter set to be executed. /// </param> /// <param name="warningListener">Used to post warnings about the execution.</param> public void Execute(ExecutionContexts contexts, IWarningListener warningListener) { LogUtilities.LogFunctionEntrance(Log, contexts, warningListener); //mark all context as success foreach (ExecutionContext context in contexts) context.Succeeded = true; }