asp.net的MVC:如何延长帐户控制? [英] asp.net mvc: how to extend account controller?

查看:123
本文介绍了asp.net的MVC:如何延长帐户控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用标准帐户控制器来处理身份验证一个asp.net MVC应用程序。
客户问我要添加新的字段如电子邮件,城市,年龄帐户创建。
这将是延长帐户控制/模型的最好方法?
我应该修改aspnet_Users表格内或者我应该创建一个新表与新的领域?它是增加新的领域AccountFormViewModel一个正确的方式?

I have a asp.net mvc application that uses standard account controller to handle auth. The client asked me to add new fields as email, city, age to account creation. Which would be the best way to extend account controller/model? Should i modify aspnet_users table or should i create a new table with the new fields? Is it a right way to add new fields to AccountFormViewModel?

推荐答案

下面是链接到类似的帖子,延长帐户控制。

Below is the link to similar post to extend account controller.

<一个href=\"http://stackoverflow.com/questions/879898/extending-accountcontroller-asp-net-mvc-membership\">Extending的AccountController:ASP.Net MVC会员

这篇关于asp.net的MVC:如何延长帐户控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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