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

前端 未结 3 757
暖寄归人
暖寄归人 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.

    0 讨论(0)
  • 2021-02-05 21:15

    There is also a NHibernate based Membership provider at CodePlex

    0 讨论(0)
  • 2021-02-05 21:17

    4 guys from rolla have an excellent post if you want to buil your own provider on top of the asp.net membership API : http://www.4guysfromrolla.com/articles/110310-1.aspx

    0 讨论(0)
提交回复
热议问题