我已经搜索了很长一段时间,但我没有找到任何线程来解释如何准确地找出代码中的当前租户。例如,我想根据租户的活动情况更改一些逻辑,如下所示:
            IQueryable<ContentPartRecord> getContentPartDates;
            if (Tenat == ExampleTenant)
            {
                getContentPartDates = GetContentPartDates((int)Id)
                .Where(ss => ss.SalesStatus == "Guaranteed")
                .OrderBy(x => x.start_date);
            }else {
                getContentPartDates = GetContentPartDates((int) Id).OrderBy(x => x.start_date);
            }
这样做的最佳方法到底是什么?
提前致谢。