有人在Nhibernate中使用ASP.NET MembershipProvider吗? [英] Anyone using ASP.NET MembershipProvider with Nhibernate?
问题描述
我正在尝试在mvc 2应用程序中实现Membership控件,但是在处理MembershipUser类时遇到了麻烦.
I'm trying to implement Membership controls in a mvc 2 application and i'm having trouble dealing with the MembershipUser class.
我有自己的数据存储区(在Postgresql中),并且我正在使用Nhibernate从C#处理它.事实是,我有自己的用户类,但是我不能与发现实现成员身份的任何提供程序一起使用它,因为所有功能都返回预定义的MembershipUser类,而不能返回我自己的类.
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?
提前谢谢!
推荐答案
您可能想看看 NHibernate成员资格提供者项目,并以此为基础进行构建.
You might want to look at NHibernate Membership Provider project and use it as a base to build from.
这篇关于有人在Nhibernate中使用ASP.NET MembershipProvider吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!