DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Static Public Member Functions | List of all members
Deveel.Data.Routines.FunctionExtensions Class Reference

Extension methods to any IFunction. More...

Static Public Member Functions

static DataObject Execute (this IFunction function, Invoke request, IGroupResolver group, IVariableResolver resolver, IRequest query)
 Executes the function given the cintext provided. More...
 
static SqlType ReturnType (this IFunction function, Invoke request, IRequest query, IVariableResolver resolver)
 

Detailed Description

Extension methods to any IFunction.

Definition at line 27 of file FunctionExtensions.cs.

Member Function Documentation

static DataObject Deveel.Data.Routines.FunctionExtensions.Execute ( this IFunction  function,
Invoke  request,
IGroupResolver  group,
IVariableResolver  resolver,
IRequest  query 
)
inlinestatic

Executes the function given the cintext provided.

Parameters
functionThe function to execute.
requestThe invocation information that was used to resolve the function.
group
resolver
query
Returns

Definition at line 38 of file FunctionExtensions.cs.

40  {
41  var execContext = new InvokeContext(request, function, resolver, group, query);
42  var result = function.Execute(execContext);
43  return result.ReturnValue;
44  }
static SqlType Deveel.Data.Routines.FunctionExtensions.ReturnType ( this IFunction  function,
Invoke  request,
IRequest  query,
IVariableResolver  resolver 
)
inlinestatic

Definition at line 46 of file FunctionExtensions.cs.

46  {
47  var execContext = new InvokeContext(request, function, resolver, null, query);
48  return function.ReturnType(execContext);
49  }

The documentation for this class was generated from the following file: