简体   繁体   English

MVC 3应用程序中的自定义成员身份和角色提供程序

[英]Custom membership and role provider in MVC 3 application

I have custom membership and role provider (C#) in my .net 4 (webform based) web application. 我的.net 4(基于Webform)Web应用程序中具有自定义成员身份和角色提供程序(C#)。

I am moving my web app to MVC 3. 我正在将我的Web应用程序移动到MVC 3。

How do I migrate or implement my custom providers in MVC 3? 如何在MVC 3中迁移或实现自定义提供程序?

Any tutorial or pointers will be appreciated. 任何教程或指针将不胜感激。

Thanks 谢谢

You can migrate them quite easily. 您可以轻松地迁移它们。 A default MVC application makes the same Membership provider calls. 默认的MVC应用程序进行相同的成员资格提供程序调用。 Just load the project they are compiled in (or import that class files if you dont want the whole project) and point your web.config at them. 只需加载它们在其中编译的项目(或者,如果您不需要整个项目,则导入该类文件),然后将web.config指向它们。

您不必对提供者进行任何更改

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM