I'ma roo开发者_JAVA百科kie and MVVM NHibernate. No I'm doing a project with MVVM and NHibernate. I need an example to facilitate studying. Thank you very much!
There are plenty of examples around for using both, they should be easy to find with [your favorite search engine]. It is better to ask specific questions rather than asking for beginner tutorials (which there are, as i said, plenty to be found).
For starters:
Good MVVM Introduction http://msdn.microsoft.com/en-us/magazine/dd419663.aspx
NHibernate Article by the makers http://msdn.microsoft.com/en-us/magazine/ee819139.aspx
Another article on codeplex that might be useful (WPF + NHibernate) http://www.codeproject.com/KB/WPF/WpfNhibernateToolkit.aspx
Another SO discussing about Nhibernate, MVVM, WPF, aso Using Unit of Work design pattern / NHibernate Sessions in an MVVM WPF
There is a very nice article (with sample code) using WPF.
Building a Desktop To-Do Application with NHibernate
It does not use MVVM however, but MVVM relies heavily on DataBinding and the approach followed in the article is quite similar (I could say, even better).
精彩评论