コード例 #1
0
ファイル: MethodNode.cs プロジェクト: hazzik/nhibernate-core
        private void DialectFunction(IASTNode exprList)
        {
            _function = SessionFactoryHelper.FindSQLFunction(_methodName);

            if (_function != null)
            {
                DataType = SessionFactoryHelper.FindFunctionReturnType(_methodName, (IEnumerable <IASTNode>)exprList);
            }
            //TODO:

            /*else {
             *      methodName = (String) getWalker().getTokenReplacements().get( methodName );
             * }*/
        }
コード例 #2
0
ファイル: MethodNode.cs プロジェクト: jrauber/GH1429
        private void DialectFunction(IASTNode exprList)
        {
            _function = SessionFactoryHelper.FindSQLFunction(_methodName);

            if (_function != null)
            {
                IASTNode child = null;

                if (exprList != null)
                {
                    child = _methodName == "iif" ? exprList.GetChild(1) : exprList.GetChild(0);
                }

                DataType = SessionFactoryHelper.FindFunctionReturnType(_methodName, child);
            }
            //TODO:

            /*else {
             *      methodName = (String) getWalker().getTokenReplacements().get( methodName );
             * }*/
        }