Skip to content

Commit

Permalink
x.6.0.17 修复多IShardingRuntimeContext只有一个serviceprovider生效
Browse files Browse the repository at this point in the history
  • Loading branch information
xuejmnet committed Jul 20, 2022
1 parent 91a9eeb commit 09c64cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions nuget-publish.bat
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions samples/Sample.SqlServer/Controllers/ValuesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ public class ValuesController : ControllerBase
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;
}

Expand Down

0 comments on commit 09c64cc

Please sign in to comment.