you must -create and open a session -begin a transaction -get a list of items A with a GetAll -I have a loop for each A item, and take a list of B items filtered by A (from database) - commit the transaction -close the session -after that i create a file excel.(if you don't need db here you can do that after that you have commit the tx/close the session,)
ps. from your pseudo code i suggest you to check for n+1 query problem -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
