开发者

fluent nHibernate and relation to Asp.net Membership tables

开发者 https://www.devze.com 2022-12-10 00:10 出处:网络
I\'m using fluent nHibernate (automapper) and at the same time use开发者_运维知识库 Asp.net Membership, but how do i reference aspnet_Users table?

I'm using fluent nHibernate (automapper) and at the same time use开发者_运维知识库 Asp.net Membership, but how do i reference aspnet_Users table?

maybe create a new user table with only the ProviderUserKey as field? and always make references to that table? and use Membership.GetUser(..) to get name etc.


You should implement new Membership provider with NHibernate. But...why do it if someone else did it already...

http://www.google.com/search?hl=en&q=nhibernate%20membership%20provider&btnG=Search


Use Windows Identity Foundation (WIF) and abstract away the whole authentication thing.

http://blogs.msdn.com/card/archive/2009/11/18/windows-identity-foundation-wif-rtm-announced.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消