NHibernate and AUTOFAC in WinForm application

后端 未结 2 936
暖寄归人
暖寄归人 2020-12-15 14:35

I\'m looking for a good tutorial to configure AUTOFAC with NHibernate in a WinForm application injecting the ISession when a form is created and disposing the ISession on fo

2条回答
  •  别那么骄傲
    2020-12-15 14:44

    I know it's too late and danyolgiax already found a solution. Yesterday I was wondering how to combine Autofac with MVP in Winforms. I came into this article.

    It's written in Polish, so feel free to use a translator. The idea presented is very neat, clear and I'll certainly follow it when we'll migrate to Autofac with our project. I thought it's worth keeping it here for people that should run into the same problem.

提交回复
热议问题