If you want to get an ArrayList, you don't need to specify the resultClass. The listClass attribut is used for typed collection.
 
Sample from unit test
<select id="GetAllDocument"
   resultMap="document">
   select
    *
   from Documents
   order by Document_Type, Document_Id
  </select>
 
IList list = sqlMap.QueryForList("GetAllDocument", null);
 
On 11/11/05, Rencelj Marco <[EMAIL PROTECTED]> wrote:

I had to get a list with a variable number of columns so I had to try ArrayList as resultClass (columns are unnamed).

The ArrayList is populated with a correct number of rows but each row instance is an empty ArrayList.

I fixed the problem in source code adding a code fragment in MappedStatement.cs as in included code.

Anybody had the same problem? May be there is a release that include this fix …

Thanks in advane

Marco

Reply via email to