开发者

Anyone using ASP.NET MembershipProvider with Nhibernate?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜