This might be a newbie question, but I need to load a collection of Users.
Let's say the query in the stored procedures is like this;
Code:
SELECT Username FROM Users WHERE Email = @Email
From my Users.hbm.xml file:
Code:
<sql-query name="SelectUsersByEmail">
<return alias="Users" class="SimpleUser" />
exec SelectUsersByEmail :Email
</sql-query>
Now I understand very well why this doesn't work, but can I load a collection of users
without having to create some kind of lame custom collection. I just want to use a List.
Thanks!