Exemple #1
0
        public string CaseToType(CRLExpression.MethodCallObj methodInfo, ref int parIndex, AddParameHandler addParame)
        {
            var field = methodInfo.MemberQueryName;

            if (string.IsNullOrEmpty(field))//按转换常量算
            {
                string parName = string.Format("@case{0}", parIndex);
                parIndex += 1;
                addParame(parName, methodInfo.Args.First());
                field = parName;
            }
            return(dBAdapter.CastField(field, methodInfo.ReturnType));
        }
Exemple #2
0
        public string CaseToType(CRLExpression.MethodCallObj methodInfo, ref int parIndex, AddParameHandler addParame)
        {
            var field = methodInfo.MemberQueryName;

            return(dBAdapter.CastField(field, methodInfo.ReturnType));
        }