views:

240

answers:

2

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.

+1  A: 

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

dmonlord
A: 

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

Carl Hörberg