This commit is contained in:
@@ -15,7 +15,7 @@ using System.Linq;
|
||||
namespace Dilon.EntityFramework.Core
|
||||
{
|
||||
[AppDbContext("DefaultConnection", DbProvider.MySql)]
|
||||
public class DefaultDbContext : AppDbContext<DefaultDbContext>, IMultiTenantOnDatabase, IModelBuilderFilter
|
||||
public class DefaultDbContext : AppDbContext<DefaultDbContext>, IModelBuilderFilter
|
||||
{
|
||||
public DefaultDbContext(DbContextOptions<DefaultDbContext> options) : base(options)
|
||||
{
|
||||
@@ -34,9 +34,6 @@ namespace Dilon.EntityFramework.Core
|
||||
{
|
||||
var defaultConnection = App.Configuration["ConnectionStrings:DefaultConnection"];
|
||||
|
||||
// 不需要多租户
|
||||
return defaultConnection;
|
||||
|
||||
// 如果没有实现多租户方式,则无需查询
|
||||
if (!typeof(IPrivateMultiTenant).IsAssignableFrom(GetType())) return defaultConnection;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user