如何使用asp.net零模板将单租户应用迁移到多租户应用?

时间:2018-11-27 05:35:06

标签: jquery asp.net asp.net-core

我正在使用Asp.net core和jquery在asp.net 0中开发一个项目。我想将我的项目更改为多租户应用程序,并且遵循asp.net zero的文档说明,但我无法更改。请帮助解决此问题。

public static class Tenant
{
   public const string BatchManage = "Batch Manage";
}

AddItem(new MenuItemDefinition(
    AppAreaNamePageNames.Tenant.BatchManage,
    L("BatchManage"),
    url: "AppAreaName/BatchManage",
    icon: "fa fa-tasks",
    requiredPermissionName: AppPermissions.Pages_BatchManage
    )
)

public const string Pages_BatchManage = "Pages.BatchManage";
public const string Pages_BatchManage_Create = "Pages.BatchManage.Create";
public const string Pages_BatchManage_Edit = "Pages.BatchManage.Edit";
public const string Pages_BatchManage_Delete = "Pages.BatchManage.Delete";

var batches = pages.CreateChildPermission(AppPermissions.Pages_BatchManage, L("BatchManage"), multiTenancySides: MultiTenancySides.Tenant);
batches.CreateChildPermission(AppPermissions.Pages_BatchManage_Create, L("CreatingNewBatch"), multiTenancySides: MultiTenancySides.Host);

public const bool MultiTenancyEnabled = true;

我想向BatchManage Page显示所有已注册的多租户。我还更改了多租户数据库以遵循文档。但我无法得到它。

0 个答案:

没有答案