修复分库下初始化的创建路由bug发布x.3.1.24

This commit is contained in:
xuejiaming 2021-11-07 10:08:23 +08:00
parent b2c3e81298
commit 76a1e0075a
2 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
:start
::定义版本
set EFCORE2=2.3.1.23
set EFCORE3=3.3.1.23
set EFCORE5=5.3.1.23
set EFCORE2=2.3.1.24
set EFCORE3=3.3.1.24
set EFCORE5=5.3.1.24
::删除所有bin与obj下的文件
@echo off

View File

@ -137,7 +137,7 @@ namespace ShardingCore.Bootstrapers
$"virtual route :[{virtualRouteType}] found more declared constructor ");
}
var @params = constructors[0].GetParameters().Select(x => x.ParameterType == ShardingContainer.GetService(x.ParameterType))
var @params = constructors[0].GetParameters().Select(x => ShardingContainer.GetService(x.ParameterType))
.ToArray();
object o = Activator.CreateInstance(virtualRouteType, @params);
return (IVirtualDataSourceRoute<TEntity>)o;