private DbType GetDbParameterType()
        {
            BaseQueryParameter qryParm = null;

            qryParm = QueryParameter.GetQueryParameter(m_ParmDef);

            return(qryParm.DbParameterType);
        }
예제 #2
0
        private SearchParameterSet ParseParmVal(QueryParmDef qryParmDef, String parmValStr)
        {
            SearchParameterSet parmSet       = null;
            BaseQueryParameter qryParmParser = null;

            try
            {
                qryParmParser = QueryParameter.GetQueryParameter(qryParmDef);
                parmSet       = qryParmParser.ParseParameter(qryParmDef, parmValStr);
            }
            catch (Exception ex)
            {
                String exMsg = String.Format("Fail to parse '{0}'. \n{1}", parmValStr, ex.Message);

                System.Diagnostics.Debug.WriteLine(exMsg); // TODO

                //throw new Exception(exMsg, ex);
            }

            return(parmSet);
        }