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;