开发者

Anyone using ASP.NET MembershipProvider with Nhibernate?

开发者 https://www.devze.com 2022-12-31 01:08 出处:网络
I\'m trying to implement Membership controls in a mvc 2 application and i\'m having trouble dealing with the MembershipUser class.

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 M开发者_运维百科embershipUser 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!


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


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

0

精彩评论

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