asp.net MVC和自定义成员资格和角色提供 [英] asp.net mvc and custom membership and role providers

查看:116
本文介绍了asp.net MVC和自定义成员资格和角色提供的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题,是有可能使用asp.net mvc的时候建立客户会员资格和角色提供(覆盖asp.net提供商)?

My question, is it possible to build customer membership and role providers (overriding the asp.net providers) when using asp.net mvc?

我猜测这是可能的,但还没有看到任何关于它的信息。

I am guessing it is possible but have not seen any information about it.

难道做的方式是在asp.net中一样吗?只是改变web.config中指向一个新的供应商,然后提供重写方法?

Would it be done the same way as in asp.net? Just changing the web.config to point to a new provider and then providing the override methods?

我发现有很多文章讨论改变成员和角色提供的数据源,但我不喜欢asp.net使用,所以我通常用我自己的表结构的表。

I have found many articles discussing changing the data source of the membership and role providers but I don't like the tables that asp.net uses so I usually use my own table structure.

如果您有谈论这个的任何文章或链接,将是巨大的。

If you have any articles or links that talk about this that would be great.

推荐答案

是的,提供者是完全一样的,只是,就像他们在常规asp.net做的工作。

Yep, the providers are exactly the same and work just like they do in "regular" asp.net.

这篇关于asp.net MVC和自定义成员资格和角色提供的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆