简体   繁体   中英

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.

I am moving my web app to MVC 3.

How do I migrate or implement my custom providers in 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. 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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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