sorry, my words were not clear. of course, hnibernate is great! i meant that something was wrong with my nhibernate cache configuration
i've written a simple test that has helped me to detect a problem. var game = new Game(); game.Number = "1"; session1.Save(game); game = session2.Get<Game>(1); game.Number = "2"; session2.Save(game); game = session1.Get<Game>(1); //here game.Number is equal to 1, not 2 as i understand each session gets a game value from it's own cache. My situation: asp net mvc 3 application - a simple blackjack game, 1 nhibernate session per thread - flushmode commit(i use transactions, the example above is merely a simple illustration). after every card- hit the game state is saved. i need each session to flush after every commit. what should i do? thanks for your help, Jason! Also i want to thank you for your great book - Nhibernate 3 recipes! -- 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.
