From a331af6533895ecc36a549121f7e34f6298e1967 Mon Sep 17 00:00:00 2001
From: xuejiaming <326308290@qq.com>
Date: Wed, 28 Sep 2022 14:27:50 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=8D=95=E5=85=83=E6=B5=8B?=
=?UTF-8?q?=E8=AF=95=E5=90=84=E4=B8=AA=E7=89=88=E6=9C=AC=E4=B9=8B=E9=97=B4?=
=?UTF-8?q?=E7=9A=84=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ShardingCore.CommonTest.csproj | 4 ++++
test/ShardingCore.Test/ShardingCore.Test.csproj | 4 ++--
test/ShardingCore.Test2x/ShardingCore.Test2x.csproj | 4 ++--
test/ShardingCore.Test2x/Startup.cs | 9 ++-------
test/ShardingCore.Test3x/ShardingCore.Test3x.csproj | 4 ++--
test/ShardingCore.Test5x/ShardingCore.Test5x.csproj | 2 +-
6 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/test/ShardingCore.CommonTest/ShardingCore.CommonTest.csproj b/test/ShardingCore.CommonTest/ShardingCore.CommonTest.csproj
index 3ba25a0f..a5a177fe 100644
--- a/test/ShardingCore.CommonTest/ShardingCore.CommonTest.csproj
+++ b/test/ShardingCore.CommonTest/ShardingCore.CommonTest.csproj
@@ -9,6 +9,10 @@
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
diff --git a/test/ShardingCore.Test/ShardingCore.Test.csproj b/test/ShardingCore.Test/ShardingCore.Test.csproj
index 1110423c..7233f8e1 100644
--- a/test/ShardingCore.Test/ShardingCore.Test.csproj
+++ b/test/ShardingCore.Test/ShardingCore.Test.csproj
@@ -8,8 +8,8 @@
-
-
+
+
diff --git a/test/ShardingCore.Test2x/ShardingCore.Test2x.csproj b/test/ShardingCore.Test2x/ShardingCore.Test2x.csproj
index 65cb3330..25f8769f 100644
--- a/test/ShardingCore.Test2x/ShardingCore.Test2x.csproj
+++ b/test/ShardingCore.Test2x/ShardingCore.Test2x.csproj
@@ -1,12 +1,12 @@
- net5.0
+ netcoreapp2.2
9.0
-
+
diff --git a/test/ShardingCore.Test2x/Startup.cs b/test/ShardingCore.Test2x/Startup.cs
index 338043a8..15f3611e 100644
--- a/test/ShardingCore.Test2x/Startup.cs
+++ b/test/ShardingCore.Test2x/Startup.cs
@@ -24,11 +24,6 @@ namespace ShardingCore.Test2x
*/
public class Startup
{
- public static readonly ILoggerFactory efLogger = LoggerFactory.Create(builder =>
- {
- builder.AddFilter((category, level) => category == DbLoggerCategory.Database.Command.Name && level == LogLevel.Information).AddConsole();
- });
-
// 支持的形式:
// ConfigureServices(IServiceCollection services)
// ConfigureServices(IServiceCollection services, HostBuilderContext hostBuilderContext)
@@ -60,11 +55,11 @@ namespace ShardingCore.Test2x
op.ThrowIfQueryRouteNotMatch = false;
op.UseShardingQuery((conStr, builder) =>
{
- builder.UseSqlServer(conStr).UseLoggerFactory(efLogger);
+ builder.UseSqlServer(conStr);
});
op.UseShardingTransaction((connection, builder) =>
{
- builder.UseSqlServer(connection).UseLoggerFactory(efLogger);
+ builder.UseSqlServer(connection);
});
op.AddDefaultDataSource("A",
diff --git a/test/ShardingCore.Test3x/ShardingCore.Test3x.csproj b/test/ShardingCore.Test3x/ShardingCore.Test3x.csproj
index 6c8f587b..2be6e926 100644
--- a/test/ShardingCore.Test3x/ShardingCore.Test3x.csproj
+++ b/test/ShardingCore.Test3x/ShardingCore.Test3x.csproj
@@ -1,12 +1,12 @@
- net6.0
+ netcoreapp3.1
9.0
-
+
diff --git a/test/ShardingCore.Test5x/ShardingCore.Test5x.csproj b/test/ShardingCore.Test5x/ShardingCore.Test5x.csproj
index 90a03159..361f88b1 100644
--- a/test/ShardingCore.Test5x/ShardingCore.Test5x.csproj
+++ b/test/ShardingCore.Test5x/ShardingCore.Test5x.csproj
@@ -7,7 +7,7 @@
-
+