我正在使用MVC4应用程序中的简单成员资格提供程序,可以看到有五个表生成。其中我可以看到用户名和密码存储在不同的表中。我想要将用户名和密码保存在同一张表中,并添加一些自定义字段。因此,我通过继承ExtendingMembership Provider来创建自己的成员资格提供程序。我对此有一些疑问。
- My application uses 3-tier architecture(BLL, DAL and Presentation layers) and created 2 areas for account and admin. So here i dont know where to place my membership provider which are then accessed with every part of application for using Authorize Attribute.
I am overriding this method CreateUserAndAccount, Do i need to implement my own logic for saving user registration datas to database. But i find only some parameters are passed, how to pass my remaining custom fields from view to the controller using the dictionary object ?
public override string CreateUserAndAccount(string userName, string password, bool requireConfirmation, IDictionary<string, object> values) { throw new NotImplementedException(); }