18 using System.Collections.Generic;
21 namespace Deveel.Data.Routines {
30 ReturnValue = returnValue;
31 HasReturnValue = hasReturn;
39 : this(context, returnValue, true) {
69 public bool HasReturnValue {
get;
private set; }
76 public bool HasOutputParameters {
77 get {
return outputValues != null && outputValues.Count > 0; }
83 public IDictionary<string, DataObject> OutputParameters {
85 if (outputValues == null)
86 return new Dictionary<string, DataObject>();
88 return outputValues.ToDictionary(x => x.Key, y => y.Value);
94 throw new Exception(
"Cannot set an output parameter value for a function.");
96 if (outputValues == null)
97 outputValues =
new Dictionary<string, DataObject>();
99 outputValues[name] = value;
InvokeResult(InvokeContext context, DataObject returnValue)
void SetOutputParameter(string name, DataObject value)
InvokeResult(InvokeContext context)
InvokeResult(InvokeContext context, DataObject returnValue, bool hasReturn)
RoutineType
The type of routine program.
Dictionary< string, DataObject > outputValues
Represents the result of the execution of a routine.
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...