ASPNET会员数据库存储额外的属性员工 [英] aspnet Membership Database to store extra employee attributes

查看:146
本文介绍了ASPNET会员数据库存储额外的属性员工的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ASPNET memberhips数据库为我的蔚蓝的Web应用程序的授权和验证。

I'm using aspnet memberhips database for authorization and authentication for my azure web application.

这ASPNET应用程序包含员工的详细信息。所有优秀的,直到我们得到了新的需要量。新的要求是在包括大量如奖励code,cos​​tcentre,分裂,位置等等...

This aspnet application contains the employees details. All good until we got new requirment. The new requirement is to in include lots of extra attributes related to employees such as awardcode, costcentre, division, location etc...

要求还可以通过管理员门户管理这些细节。

The requirement is also to admin these details via Admin portal.

有没有我们可以在ASPNET数据库符合上述要求什么办法?我要补充额外的表和字段或有acheving的更好的方法。

Is there any way we can fit the above requirement with in aspnet database? Should I add extra tables and fields or there's a better way of acheving this.

感谢您。

推荐答案

您可能要考虑的ASP.NET配置文件提供者。它的成员框架的另一部件。它存储用户属性的一个有些动态列表中的数据库中,通常是在aspnet_Profile表。您可以通过补充Web.config中得到了很多的功能免费,也可以通过实现自定义配置文件提供大量定制。这里有一些链接上手:

You might want to consider the ASP.NET Profile provider. It's another component of the Membership framework. It stores a somewhat dynamic list of user properties in the database, typically in the aspnet_Profile table. You can get a lot of functionality for free by making additions to Web.config, or you can customize heavily by implementing a custom profile provider. Here are some links to get started:

  • http://msdn.microsoft.com/en-us/library/014bec1k.aspx
  • http://msdn.microsoft.com/en-us/magazine/cc163457.aspx

有过的时候,虽然这种做法是不是对我来说是非常适合倍,所以我只是在正是我想要的列的数据库中创建一个单独的UserRecord表,并增加了一些观点,即加入UserRecord与数据库bulitin aspnet_Membership表等方式,获取数据的正确组合。

There have been times though when this approach wasn't a great fit for me, so I simply created a separate UserRecord table in the database with exactly the columns I wanted, and added some views to the database that joined UserRecord with the bulitin aspnet_Membership table, etc., to get the right combination of data.

这篇关于ASPNET会员数据库存储额外的属性员工的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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