I have a question about the way session.Save works. I have a session, I open a transaction over this session, and then commit the transaction. There are two different things I am doing within session and transaction:
1. Load an entity and add another entity to one of its collections. This works and correctly persists all changes on commit. 2. Create new entity and use Save to store it and get its key. This gives me a key, but does not persist the entity on commit. Now, if I call session.Flush in second case, it works -- but it does not seem to be a good practice. Is there something I am doing wrong? (btw is there a reason why disposing dirty session does not cause an exception? it seems to be an easy source of possible bugs) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to nhusers@googlegroups.com To unsubscribe from this group, send email to nhusers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---