DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Protected Member Functions | Properties | List of all members
Deveel.Data.Routines.FunctionBuildTests.Factory2 Class Reference
Inheritance diagram for Deveel.Data.Routines.FunctionBuildTests.Factory2:
Deveel.Data.Routines.FunctionProvider Deveel.Data.Routines.IRoutineResolver Deveel.Data.Sql.Fluid.IConfigurationContext

Protected Member Functions

override void OnInit ()
 
- Protected Member Functions inherited from Deveel.Data.Routines.FunctionProvider
 FunctionProvider ()
 
virtual ObjectName NormalizeName (ObjectName name)
 
void Register (FunctionInfo functionInfo, Func< InvokeContext, InvokeResult > body, Func< InvokeContext, SqlType > returnType)
 
void Register (Func< IFunctionConfiguration, IFunctionConfiguration > config)
 
void Register (IFunction function)
 
virtual void Dispose (bool disposing)
 

Properties

override string SchemaName [get]
 
- Properties inherited from Deveel.Data.Routines.FunctionProvider
abstract string SchemaName [get]
 
- Properties inherited from Deveel.Data.Sql.Fluid.IConfigurationContext
string SchemaName [get]
 

Additional Inherited Members

- Public Member Functions inherited from Deveel.Data.Routines.FunctionProvider
IFunction ResolveFunction (Invoke invoke, IQuery query)
 
void Dispose ()
 

Detailed Description

Definition at line 80 of file FunctionBuildTests.cs.

Member Function Documentation

override void Deveel.Data.Routines.FunctionBuildTests.Factory2.OnInit ( )
inlineprotectedvirtual

Implements Deveel.Data.Routines.FunctionProvider.

Definition at line 85 of file FunctionBuildTests.cs.

85  {
86  Register(config => config.Named("add2")
87  .WithNumericParameter("a")
88  .WithNumericParameter("b")
89  .ReturnsNumeric()
90  .WhenExecute(context => {
91  var a = context.EvaluatedArguments[0];
92  var b = context.EvaluatedArguments[1];
93  return context.Result(a.Add(b));
94  }));
95  }
void Register(FunctionInfo functionInfo, Func< InvokeContext, InvokeResult > body, Func< InvokeContext, SqlType > returnType)

Property Documentation

override string Deveel.Data.Routines.FunctionBuildTests.Factory2.SchemaName
get

Definition at line 81 of file FunctionBuildTests.cs.


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