I am working on MVC app with NHibernate. I am having a screen with Customer information and Order objects. As guessed, customer entity is having List property and Order entity is having customer property.
I attached the orders object by storing them in session. User can add/delete the orders, so I have attached modified orders to the customer object. But when I see the sql statements, it is inserting the new orders which is expected behavior but for deleted orders it is updating with customer_id = null instead of deleting them completely?
Thanks, Sundeep