Using Unit of Work design pattern / NHibernate Sessions in an MVVM WPF

前端 未结 4 1490
我在风中等你
我在风中等你 2020-12-08 22:45

I think I am stuck in the paralysis of analysis. Please help!

I currently have a project that

  • Uses NHibernate on SQLite
  • Implements Repository
4条回答
  •  感情败类
    2020-12-08 23:49

    I know this dates from a while ago but I've been looking online for a decent answer for 3 days. I read the two blogs you mention had a look at the Nhibernate 3.0 cookbook where they also talk about Nhibernate in a MVP application but this didn't fit exactly in my MVVM context with repositories and using Ninject for IoC.

    I've found this old post which as so far been the most useful page: http://www.emidee.net/index.php/2010/08/23/ninject-use-one-database-session-per-view-model

    I hope this helps anyone who will stumble upon this question in the future.

提交回复
热议问题