I know开发者_开发问答 ISession is not thread safe. Is IStatelssSession also not thread safe? I guess the answer is no. I did a quick search but didn't find a reference for this.
Thanks.
The StatelessSessionImpl holds a ConnectionManager which holds an IDbConnection - SqlConnection is not thread-safe, so that would be no.
Although the NH trunk code documentation does not specific whether or not it is.
Edit: The code also shows no thread synchronization and it also holds an ITransaction.
精彩评论