From 76a1e0075a6fe9c9db788a243704c2e1d649dcaf Mon Sep 17 00:00:00 2001 From: xuejiaming <326308290@qq.com> Date: Sun, 7 Nov 2021 10:08:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E5=BA=93=E4=B8=8B?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E7=9A=84=E5=88=9B=E5=BB=BA=E8=B7=AF?= =?UTF-8?q?=E7=94=B1bug=E5=8F=91=E5=B8=83x.3.1.24?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuget-publish.bat | 6 +++--- src/ShardingCore/Bootstrapers/EntityMetadataInitializer.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nuget-publish.bat b/nuget-publish.bat index f8291b0e..073ec18c 100644 --- a/nuget-publish.bat +++ b/nuget-publish.bat @@ -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 diff --git a/src/ShardingCore/Bootstrapers/EntityMetadataInitializer.cs b/src/ShardingCore/Bootstrapers/EntityMetadataInitializer.cs index c0917fae..57b1396f 100644 --- a/src/ShardingCore/Bootstrapers/EntityMetadataInitializer.cs +++ b/src/ShardingCore/Bootstrapers/EntityMetadataInitializer.cs @@ -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)o;