NHibernate MVVM Session Best Practices

What is the best place to keep in an NHibernate session if we only need one?

In the main window viewer?
In the application?
In the DataAccess class?

+4
source share
1 answer

You should read Oren Eini's MSDN article on Building a Desktop Application in NHibernate . It details the creation and management of the NHibernate session lifetime, as well as the two-way data binding and entity distribution.

I believe that he used some variants of MVP or MVVM in his examples, although he does not mention it by name.

+3
source

Source: https://habr.com/ru/post/1307590/


All Articles