Implementing auto-save in WPF / MVVM / NHibernate

Posted by Echiban on Stack Overflow See other posts from Stack Overflow or by Echiban
Published on 2010-04-24T17:28:42Z Indexed on 2010/04/24 17:33 UTC
Read the original article Hit count: 316

My client likes programs like Microsoft OneNote where changes are saved automatically, and he can choose to discard when he explicitly wants to do so. I will have to implement some undo functionality, but I'll figure that out some other time.

With NHibernate, I suppose I can call ISession.Update on every single property / binding change, but I can see real pain with this approach down the road. I am not a fan of timers, but maybe a 5 second timer that starts on property / binding change and at timer end use BackgroundWorker thread to save to db.

What do you think?

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about autosave