Exemplo n.º 1
0
        protected void Register(SystemFunctionInfo functionInfo, Func <InvokeContext, InvokeResult> body, Func <InvokeContext, Field, Field> afterAggregate, Func <InvokeContext, SqlType> returnType)
        {
            if (afterAggregate != null &&
                functionInfo.FunctionType != FunctionType.Aggregate)
            {
                throw new ArgumentException("Cannot specify an after-aggregation on non-aggregate function.");
            }

            Register(new DelegateFunction(functionInfo, body, afterAggregate, returnType));
        }
Exemplo n.º 2
0
 protected SystemFunction(SystemFunctionInfo functionInfo)
     : base(functionInfo)
 {
 }
Exemplo n.º 3
0
 protected void Register(SystemFunctionInfo functionInfo, Func <InvokeContext, InvokeResult> body, Func <InvokeContext, SqlType> returnType)
 {
     Register(functionInfo, body, null, returnType);
 }
Exemplo n.º 4
0
 protected SystemFunction(SystemFunctionInfo functionInfo)
     : base(functionInfo)
 {
 }