ASP.NET membership model for multiple Company accounts, each with multiple Users

我怕爱的太早我们不能终老 提交于 2019-12-11 11:48:45

问题


Tyring to design a membership system for multiple company accounts, each with multiple users (as opposed to just unique users ala default ASP.NET Membership provider).

Seems like a very common scenario, but can find NO guidance. How is this usually implemented? ARGH!!

Company Account A [CompanyID]; User 1 [UserID]; User 2 [UserID];...

Company Account B [CompanyID]; User 3 [UserID]; User 4 [UserID];...

Can I use ASP.NET 2.0 Membership Provider (as is or modified?), or do I need to roll my own from scratch?

Planning SaaS application in ASP.NET 4.x Web Forms, C#, SQL Server 2008/12, shared DB + shared schema. Customers will sign-up for Accounts (auto-provisioned), then setup their own users manually (or approve sign-ups).

I believe I understand the DB aspect (CompanyID + UserID), just not the Membership provider. I plan to use email address as UserName (always unique), which will then identify which Company user belongs to, so no messing around with URLs needed.

Any guidance greatly appreciated!

来源:https://stackoverflow.com/questions/10466542/asp-net-membership-model-for-multiple-company-accounts-each-with-multiple-users

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!