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)); }
public string CaseToType(CRLExpression.MethodCallObj methodInfo, ref int parIndex, AddParameHandler addParame) { var field = methodInfo.MemberQueryName; return(dBAdapter.CastField(field, methodInfo.ReturnType)); }