x.6.0.17 修复多IShardingRuntimeContext只有一个serviceprovider生效
This commit is contained in:
parent
91a9eebd60
commit
09c64cc328
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue