Hello all,
Consider a transaction-per-view model where with an IHttpModule i open a transaction using a standard ISession.
Now, i have a page where i want to do some batch operations. Since IStatelessSession is preferred for batch operations:
- Can i have both
ISessionandIStatelessSessionopen at the same time? Is it safe? - If 1. yes can i use the same
ITransaction? - If 2. no should i Commit & Close the
ISessionand its associatedITransactionand then open theIStatelessSessionand a newITransactionfor it? - If 3. yes are there any pitfalls i should be aware of?
any ideas are welcome