在多个租户中创建新租户

问题描述 投票:0回答:1

当我在调试模式下创建新租户并在公共 api 上创建新租户时,即使应用程序设置中到服务器的连接字符串配置相同,也仅以正确模式登录 dc 租户。

请告诉我如何解决它!

我使用框架abp样板

c# asp.net-web-api aspnetboilerplate
1个回答
0
投票

该框架对于调试和无调试有不同的编码键,但它总是返回 true,所以我更改了此文件:

 namespace eTrans.Debugging
 {
    public static class DebugHelper
    {
       public static bool IsDebug
       {
          get
          {
            if (System.Diagnostics.Debugger.IsAttached)
            {
                return true;
            }
            else
            {
                return false;
            }
          }
       }
    }
}
© www.soinside.com 2019 - 2024. All rights reserved.