设计支持SubSites的Asp.Net应用程序 [英] Designing an Asp.Net App that supports SubSites

查看:155
本文介绍了设计支持SubSites的Asp.Net应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个必须支持 SubSites 的ASP.Net应用程序。

I'm designing an ASP.Net application that must support 'SubSites'.

想法是让超级管理员管理所有用户,全局应用程序设置和子站点。每个子站点都有一些自己的设置(如本地管理员,徽标和欢迎信息),每个SubSite都有自己的注册用户列表。

The idea is to have a super admin manage all users, global application settings and SubSites. Each Subsite has a few of its own settings (such as a local admin, logo and welcome message) and each SubSite has its own list of registered users.

这是非常类似于使用CMS,如Joomla,SharePoint或DotNetNuke。事实上,我很想使用这样一个平台,但其他项目的要求阻止我这样做。

This is very similar with what you get using a CMS such as Joomla, SharePoint or DotNetNuke. In fact, I'm tempted to use such a platform, but other project requirements prevent me from doing that.

我的问题在这一点非常笼统:

My questions are very general at this point:


  1. 使用 ASP.NET 2.0成员资格如何指定一个超级管理员,并根据他们注册的SubSite 对用户进行分类?

  2. 我将如何实现SubSites(应该使用什么样的模式等)?我对文章特别感兴趣,解释其他人如何做到这一点。我想学习别人获得的最佳实践,而不用花费时间挖掘一些大型开源项目的源代码,如DotNetNuke。

  1. Using ASP.NET 2.0 Membership, how would I designate a super admin and classify users based on the SubSite in which they have registered?
  2. How would I implement SubSites (what patterns should be used, etc)? I'm especially interested in articles that explain how others have done this. I would like to learn the best practices that others have acquired, without spending days digging into the source code of a large open source project like DotNetNuke.



我将在ASP.Net MVC 1.0中实现这一点,所以在这方面的任何例子将是最有帮助的。



更新:
我真的很喜欢 Mike Hadlow实施多租户,我决定以他的工作为起点。有关我如何使用SqlMembershipProvider的信息,请参阅此帖每个租户都有自己的隔离数据库

I'll be implementing this in ASP.Net MVC 1.0, so any examples in that regard will be most helpful.


UPDATE: I really like how Mike Hadlow implemented multi-tenancy and I've decided to use his work as a starting point. See this post for info on how I'm using SqlMembershipProvider with each tenant having their own isolated database. That solves my membership "based on subsite" problem.

推荐答案

您尝试的内容更常被称为 multitenancy 而不是subsites

What you're attempting is more commonly referred to as "multitenancy", not "subsites"

有一个类似问题对此,接受的答案听起来似乎合理。

There was a similar question to this, and the accepted answer sounds plausible.

这篇关于设计支持SubSites的Asp.Net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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