I've just uploaded a test project to the link Gustavo gave me. It is based on his NHibernateEnterpriseSample from his blog.
The test project only has one table the script to create it is in the foleder "Solution Items"; it's for MSSQL. My real project surely has more tables with foreign key relation, but this test shows where the problem is. The Form shows three buttons: - one to add a new record using Session.SaveOrUpdate - which does not work - one to add a new record using Session.Save - which works - and one to delete the record with the highest Id The ListBox shows all records in the database. Everything that's now in the button event handler code would normal be in some form, just as Gustavor has it in his example. Hopfully you have enough information to check out the test. Daniel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
