首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从ABP.io禁用多租户

从ABP.io禁用多租户
EN

Stack Overflow用户
提问于 2020-04-23 15:09:13
回答 2查看 395关注 0票数 1

我们最近开始在ABP.io上构建我们的项目。在我们的项目中,我们没有多租户的要求。因此,我们希望将其从项目中完全删除。

我试图从ABP.io的可用文档中找到解决方案。然而,我找不到任何相关的文档来这样做。

是否可以从ABP.io项目中删除多租户?如果是,执行此操作的步骤是什么?

EN

回答 2

Stack Overflow用户

发布于 2020-05-03 19:30:31

我认为您可以从这里在Domain.Shared MultiTenancyoff 中切换项目。

代码语言:javascript
复制
public static class MultiTenancyConsts
{
    /* Enable/disable multi-tenancy easily in a single point.
     * If you will never need to multi-tenancy, you can remove
     * related modules and code parts, including this file.
     */
    public const bool IsEnabled = false;
}
票数 1
EN

Stack Overflow用户

发布于 2022-01-03 14:41:05

对于仍在运行的API,您应该能够覆盖任何控制器或appservices。

ABP guide to override

这不会完全删除端点,但您可以完全关闭它们,只需将它们留空即可,使它们没有任何功能。

代码语言:javascript
复制
using Volo.Abp.Identity;

[RemoteService(true, Name = "AbpIdentity")]
[Route("api/identity/organization-units", Order = 1)]
[ControllerName("OrganizationUnit")]
[ExposeServices(typeof(OrganizationUnitController),typeof(IAppOrganizationUnitAppService))]
[Area("identity")]

public class AppOrganizationUnitController : OrganizationUnitController, IAppOrganizationUnitAppService, IOrganizationUnitAppService
{

     public override Task AddMembersAsync(Guid id, OrganizationUnitUserInput input){
     {

}

This might also do it -总部基地问题解答

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61381311

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档