From fe8783e3e75fbbacbed427ccda30589f1f0197e1 Mon Sep 17 00:00:00 2001 From: ky_sunl Date: Fri, 23 Apr 2021 07:53:53 +0000 Subject: [PATCH] --- Api/Dilon.EntityFramework.Core/DbContexts/DefaultDbContext.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Api/Dilon.EntityFramework.Core/DbContexts/DefaultDbContext.cs b/Api/Dilon.EntityFramework.Core/DbContexts/DefaultDbContext.cs index 10c95cb..efd6632 100644 --- a/Api/Dilon.EntityFramework.Core/DbContexts/DefaultDbContext.cs +++ b/Api/Dilon.EntityFramework.Core/DbContexts/DefaultDbContext.cs @@ -34,6 +34,9 @@ namespace Dilon.EntityFramework.Core { var defaultConnection = App.Configuration["ConnectionStrings:DefaultConnection"]; + // 不需要多租户 + return defaultConnection; + // 如果没有实现多租户方式,则无需查询 if (!typeof(IPrivateMultiTenant).IsAssignableFrom(GetType())) return defaultConnection;