Using NHibernate.AspNet.Identity

后端 未结 2 742
遇见更好的自我
遇见更好的自我 2020-12-31 10:29

I am attempting to use Asp.net identity and NHibernate.

I have created a new blank Asp.net MVC site using .NET framework 4.5.1 and I have installed and followed the

2条回答
  •  清酒与你
    2020-12-31 10:58

    I also struggled to use NHibernate.AspNet.Identity. I found it was much easier just to make my own implementation using NHibernate, which I've turned into a minimal worked example here:

    https://github.com/MartinEden/NHibernate.AspNet.Identity.Example

    They key parts are a simple implementation of IUserStore and IUserPasswordStore using an NHibernate session for persistence. Then it's just a matter of writing a bit of glue to tell Owin to use that code.

提交回复
热议问题