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"
// );