Try putting a semi-colon after the first select?

----- Original Message ----
From: Michael Schall <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, June 12, 2008 5:46:34 PM
Subject: Multiple ResultMap Support


I'm trying to use the multiple resultset support in one of my maps.  I only 
receive one list of objects back.  I expected a list of lists back.  Is the 
following supported somehow?  If not I suppose I could loop through and split 
the list by type myself.  
Thanks 
Mike
<select id="GetMultipleResultMap" resultMap="account, category">
select * from accounts
select * from categories
</select>
IList list = sqlMap.QueryForList("GetMultipleResultMap", null);
IList<Account> accountList = list[0];

IList<Category> categoryList = list[1];

Reply via email to