public SqlFunctionExpression(String functionName, System.Type returnType, Object[] paramValues,
     System.Type[] paramTypes, ICriterion innerCriterion, int propertyPosition,
     SqlFunctionExpression rightFunction)
 {
     FunctionName = functionName;
     ReturnType = returnType;
     ParameterValues = paramValues;
     ParameterTypes = paramTypes;
     InnerCriterion = innerCriterion;
     PropertyPosition = propertyPosition;
     RightFunction = rightFunction;
 }
Ejemplo n.º 2
0
        public static SqlFunctionExpression GetFunctionCriteria(MethodCallExpression call, ICriterion criterion,
            SqlFunctionExpression rightFunction)
        {
            System.Type[] paramTypes = null;
            object[] paramValues = GetMethodParameterValues(call, out paramTypes);

            int propertyPosition = 0;
            string methodName = QueryUtil.GetMethodName(call, out propertyPosition);

            return new SqlFunctionExpression(methodName, call.Method.ReturnType, paramValues, paramTypes, criterion,
                                             propertyPosition, rightFunction);
        }
 public SqlFunctionExpression(String functionName, System.Type returnType, Object[] paramValues,
                              System.Type[] paramTypes, ICriterion innerCriterion, int propertyPosition,
                              SqlFunctionExpression rightFunction)
 {
     FunctionName     = functionName;
     ReturnType       = returnType;
     ParameterValues  = paramValues;
     ParameterTypes   = paramTypes;
     InnerCriterion   = innerCriterion;
     PropertyPosition = propertyPosition;
     RightFunction    = rightFunction;
 }