Best practice to join nhibernate and ASP.NET membership/role/profile services

前端 未结 3 816
暖寄归人
暖寄归人 2021-02-05 20:15

I\'ve got a generic ASP.NET (MVC) application, that uses NHibernate as the model persistence layer, and ASP.NET Membership/role/profile services as the user management layer.

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-05 21:15

    I would go for step 2 (almost, as it does not necessarily needs to be readonly) and create a custom membership provider for NHibernate.

    To save time you can use an existing one like the one from Manuel Abadia.

    With that you keep the full power of NHibernate (lazy loading, etc.) and enjoy M/R/P services too.

提交回复
热议问题