x.6.0.17 修复多IShardingRuntimeContext只有一个serviceprovider生效

This commit is contained in:
xuejiaming 2022-07-20 14:13:06 +08:00
parent 91a9eebd60
commit 09c64cc328
2 changed files with 7 additions and 7 deletions

View File

@ -1,9 +1,9 @@
:start
::定义版本
set EFCORE2=2.6.0.14
set EFCORE3=3.6.0.14
set EFCORE5=5.6.0.14
set EFCORE6=6.6.0.14
set EFCORE2=2.6.0.17
set EFCORE3=3.6.0.17
set EFCORE5=5.6.0.17
set EFCORE6=6.6.0.17
::删除所有bin与obj下的文件
@echo off

View File

@ -34,12 +34,12 @@ namespace Sample.SqlServer.Controllers
private readonly IShardingReadWriteManager _readWriteManager;
private readonly IShardingRuntimeContext _shardingRuntimeContext;
public ValuesController(DefaultShardingDbContext defaultTableDbContext, IShardingRouteManager shardingRouteManager,IShardingReadWriteManager readWriteManager,IShardingRuntimeContext shardingRuntimeContext)
public ValuesController(DefaultShardingDbContext defaultTableDbContext, IShardingRuntimeContext shardingRuntimeContext)
{
_defaultTableDbContext = defaultTableDbContext;
_ = defaultTableDbContext.Model;
_shardingRouteManager = shardingRouteManager;
_readWriteManager = readWriteManager;
_shardingRouteManager = shardingRuntimeContext.GetShardingRouteManager();
_readWriteManager = shardingRuntimeContext.GetShardingReadWriteManager();
_shardingRuntimeContext = shardingRuntimeContext;
}