i need help: I'm a beginner with Nhibernate. I have created a wpf application that load a datagrid binded with an observable collection. This collection is loaded with repository pattern and Nhibernate querying database. I want to modify this collection with UI (edit, add, delete).
When i click to my save button i want to persist my changes to db table. I read nhibernate documentation and i learn that there are 2 level of cache, my idea is to modify objects in first level cache, and when I am sure of my changes i want to persist. there are some best practices for doing this?
How to mark for deletion or update an object and delete or update it after "save changes" click?