2013-01-18 37 views
0

我正在使用ibatis .net和sqlite for ORM。但是,每當我提出以下電話帶有Sqlite的iBatis .net導致數組超出界限

IList clientList = mapper.QueryForList("ClientFirm.GetClientData", "A"); 

我得到以下錯誤:「索引超出了數組的範圍之外」

留言

這裏是堆棧跟蹤:

 
    at IBatisNet.DataMapper.TypeHandlers.CharTypeHandler.GetValueByName(ResultProperty mapping, IDataReader dataReader) 
    at IBatisNet.DataMapper.Configuration.ResultMapping.ResultProperty.GetDataBaseValue(IDataReader dataReader) 
    at IBatisNet.DataMapper.MappedStatements.PropertyStrategy.DefaultStrategy.Get(RequestScope request, IResultMap resultMap, ResultProperty mapping, Object& target, IDataReader reader) 
    at IBatisNet.DataMapper.MappedStatements.PropertyStrategy.DefaultStrategy.Set(RequestScope request, IResultMap resultMap, ResultProperty mapping, Object& target, IDataReader reader, Object keys) 
    at IBatisNet.DataMapper.MappedStatements.ResultStrategy.GroupByStrategy.Process(RequestScope request, IDataReader& reader, Object resultObject) 
    at IBatisNet.DataMapper.MappedStatements.ResultStrategy.MapStrategy.Process(RequestScope request, IDataReader& reader, Object resultObject) 
    at IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForList(RequestScope request, ISqlMapSession session, Object parameterObject, IList resultObject, RowDelegate rowDelegate) 
    at IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForList(ISqlMapSession session, Object parameterObject) 
    at IBatisNet.DataMapper.SqlMapper.QueryForList(String statementName, Object parameterObject) 
    at IBatisMapper.getAllClientData() in d:\Users\ae08964\ATNSource\ATN-AttorneyNetwork\trunk\ATN\App_Code\com\ubs\atn\model\admin\IBatisMapper.cs:line 67 

它工作正常,如果數據集大約是50到100,但未能對各地超過100(約)任何東西。有沒有人有想法?

回答

0

把它想出來..它必須做一些與映射對象中聲明的字符類型。