diff --git a/nuget-publish.bat b/nuget-publish.bat index a2c07806..5bca14df 100644 --- a/nuget-publish.bat +++ b/nuget-publish.bat @@ -1,10 +1,10 @@ :start ::定义版本 -set EFCORE7=7.7.0.6 -set EFCORE6=7.6.0.6 -set EFCORE5=7.5.0.6 -set EFCORE3=7.3.0.6 -set EFCORE2=7.2.0.6 +set EFCORE7=7.7.0.7 +set EFCORE6=7.6.0.7 +set EFCORE5=7.5.0.7 +set EFCORE3=7.3.0.7 +set EFCORE2=7.2.0.7 ::删除所有bin与obj下的文件 @echo off diff --git a/src/ShardingCore/ShardingCore.csproj b/src/ShardingCore/ShardingCore.csproj index 7841de39..77601ffd 100644 --- a/src/ShardingCore/ShardingCore.csproj +++ b/src/ShardingCore/ShardingCore.csproj @@ -1,7 +1,7 @@  net6.0 - $(EFCORE7) + 7.7.0.7 true TRACE;DEBUG;EFCORE7; latest diff --git a/src2/ShardingCore2/ShardingCore2.csproj b/src2/ShardingCore2/ShardingCore2.csproj index c6e8d3c4..5a922d6f 100644 --- a/src2/ShardingCore2/ShardingCore2.csproj +++ b/src2/ShardingCore2/ShardingCore2.csproj @@ -2,7 +2,7 @@ netstandard2.0 - $(EFCORE2) + 7.2.0.7 true TRACE;DEBUG;EFCORE2; 9.0 diff --git a/src3/ShardingCore3/ShardingCore3.csproj b/src3/ShardingCore3/ShardingCore3.csproj index eb240a38..71d0718d 100644 --- a/src3/ShardingCore3/ShardingCore3.csproj +++ b/src3/ShardingCore3/ShardingCore3.csproj @@ -1,7 +1,7 @@ netstandard2.0 - $(EFCORE3) + 7.3.0.7 true TRACE;DEBUG;EFCORE3; 9.0 diff --git a/src5/ShardingCore5/ShardingCore5.csproj b/src5/ShardingCore5/ShardingCore5.csproj index 12872478..3d2de865 100644 --- a/src5/ShardingCore5/ShardingCore5.csproj +++ b/src5/ShardingCore5/ShardingCore5.csproj @@ -2,7 +2,7 @@ netstandard2.1 - $(EFCORE5) + 7.5.0.7 true TRACE;DEBUG;EFCORE5; 9.0 diff --git a/src6/ShardingCore6/ShardingCore6.csproj b/src6/ShardingCore6/ShardingCore6.csproj index 71c8a7a7..c1dd3023 100644 --- a/src6/ShardingCore6/ShardingCore6.csproj +++ b/src6/ShardingCore6/ShardingCore6.csproj @@ -2,7 +2,7 @@ net6.0 - $(EFCORE6) + 7.6.0.7 true TRACE;DEBUG;EFCORE6; 9.0 diff --git a/test/ShardingCore.Test/Startup.cs b/test/ShardingCore.Test/Startup.cs index 4f6ece91..da7fcfcc 100644 --- a/test/ShardingCore.Test/Startup.cs +++ b/test/ShardingCore.Test/Startup.cs @@ -56,6 +56,7 @@ namespace ShardingCore.Test }) .UseConfig(op => { + op.CacheModelLockConcurrencyLevel = Environment.ProcessorCount; //op.UseEntityFrameworkCoreProxies = true; //当无法获取路由时会返回默认值而不是报错 op.ThrowIfQueryRouteNotMatch = false; diff --git a/test/ShardingCore.Test2x/Startup.cs b/test/ShardingCore.Test2x/Startup.cs index 68e7b486..7b3c81f0 100644 --- a/test/ShardingCore.Test2x/Startup.cs +++ b/test/ShardingCore.Test2x/Startup.cs @@ -51,6 +51,7 @@ namespace ShardingCore.Test2x .UseConfig(op => { + op.CacheModelLockConcurrencyLevel = Environment.ProcessorCount; //当无法获取路由时会返回默认值而不是报错 op.ThrowIfQueryRouteNotMatch = false; op.UseShardingQuery((conStr, builder) => diff --git a/test/ShardingCore.Test3x/Startup.cs b/test/ShardingCore.Test3x/Startup.cs index e0e11612..5f1d62a5 100644 --- a/test/ShardingCore.Test3x/Startup.cs +++ b/test/ShardingCore.Test3x/Startup.cs @@ -55,6 +55,7 @@ namespace ShardingCore.Test3x }) .UseConfig(op => { + op.CacheModelLockConcurrencyLevel = Environment.ProcessorCount; //当无法获取路由时会返回默认值而不是报错 op.ThrowIfQueryRouteNotMatch = false; op.UseShardingQuery((conStr, builder) => diff --git a/test/ShardingCore.Test5x/Startup.cs b/test/ShardingCore.Test5x/Startup.cs index 799acc5d..8c806d63 100644 --- a/test/ShardingCore.Test5x/Startup.cs +++ b/test/ShardingCore.Test5x/Startup.cs @@ -55,6 +55,7 @@ namespace ShardingCore.Test5x }) .UseConfig(op => { + op.CacheModelLockConcurrencyLevel = Environment.ProcessorCount; //当无法获取路由时会返回默认值而不是报错 op.ThrowIfQueryRouteNotMatch = false; diff --git a/test/ShardingCore.Test6x/Startup.cs b/test/ShardingCore.Test6x/Startup.cs index 0bd13cbd..25e650ea 100644 --- a/test/ShardingCore.Test6x/Startup.cs +++ b/test/ShardingCore.Test6x/Startup.cs @@ -56,6 +56,7 @@ namespace ShardingCore.Test6x }) .UseConfig(op => { + op.CacheModelLockConcurrencyLevel = Environment.ProcessorCount; //op.UseEntityFrameworkCoreProxies = true; //当无法获取路由时会返回默认值而不是报错 op.ThrowIfQueryRouteNotMatch = false;