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 @@ - +