views:

121

answers:

2

Hi, I'm trying to implement Membership controls in a mvc 2 application and i'm having trouble dealing with the MembershipUser class.

I have my own data store (in Postgresql) and I'm using Nhibernate to deal with it from C#. The thing is, I have my own user class, but I can't use it with any provider I found that implements Membership, because all the functions return the predefined MembershipUser class and cannot return my own.

I'm losing my mind here, is there any way i can work with this, or should I implement everything myself?

thanks in advance!

+1  A: 

You must derive from the MembershipUser class and override the methods you wish to replace.

Sky Sanders
A: 

You might want to look at NHibernate Membership Provider project and use it as a base to build from.

Mike Glenn