mojoportal中提示错误:parameter's type doesn't match cached parameters

  注释掉SqlParameterHelper.cs中如下代码:

 //Debug.Assert(arParams[index].Direction == dir, "parameter's direction doesn't match cached parameters");
            //Debug.Assert(string.Equals(arParams[index].ParameterName,paramName, StringComparison.InvariantCultureIgnoreCase), "parameter's name doesn't match cached parameters");
            //Debug.Assert(
            //    ((type != SqlDbType.NText)
            //        && (arParams[index].SqlDbType == type))
            //        ||
            //    ((type == SqlDbType.NText)
            //    && (arParams[index].SqlDbType == SqlDbType.NVarChar))
            //    ||
            //    ((type == SqlDbType.Image)
            //    && (arParams[index].SqlDbType == SqlDbType.VarBinary))
            //    , "parameter's type doesn't match cached parameters"
            //    );

 

posted on 2010-11-23 11:07  蓝蓝的天2016  阅读(215)  评论(0编辑  收藏  举报