我需要使用mysql在mvc 4 vs 2012中使用简单的成员身份 [英] I need simple membership in mvc 4 vs 2012 with mysql

查看:87
本文介绍了我需要使用mysql在mvc 4 vs 2012中使用简单的成员身份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要mvc 4 vs 2012中的简单会员资格,使用mysql

(代码优先迁移和扩展身份帐户)

请举例说明web.config



Accountcontroller

我需要开发相同的mvc默认模板,适用于sql server而不是mysql

I need simple membership in mvc 4 vs 2012 with mysql
(Code-First Migration and Extending Identity Accounts)
Please give me example of web.config
and
Accountcontroller
I need to develop same as default template of mvc that is for sql server not for mysql

推荐答案

你看过这篇文章吗?似乎完全满足您的需求:

会员和角色MySQL的提供者 [ ^ ]
Have you seen this article? Seems to serve exactly your needs:
Membership and Role providers for MySQL[^]


Connector / Net 6.9.X版本已经支持它,请参阅以下链接:

如何:将SimpleMembershipProvider与MySql Connector / Net一起使用 [ ^ ]
Connector/Net 6.9.X version already has the support for it, see the following Link:
How To: Using SimpleMembershipProvider with MySql Connector/Net[^]


这篇关于我需要使用mysql在mvc 4 vs 2012中使用简单的成员身份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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