Anyone using ASP.NET MembershipProvider with Nhibernate?

I am trying to implement membership controls in an mvc 2 application and am having problems with the MembershipUser class.

I have my own data store (in Postgresql) and I use Nhibernate to work with C #. The fact is that I have my own custom class, but I can not use it with any provider that has found that it implements membership, because all functions return the predefined class MembershipUser and cannot return my own.

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

early!

0
source share
2 answers

You might want to look at the NHibernate Membership Provider project and use it as a base for creating.

+2
source

You should get from the class MembershipUserand overridemethods that you want to replace.

+1
source

Source: https://habr.com/ru/post/1745828/