diff --git a/nuget-publish.bat b/nuget-publish.bat index e7ce0dc0..1f5cc58e 100644 --- a/nuget-publish.bat +++ b/nuget-publish.bat @@ -1,8 +1,8 @@ :start ::定义版本 -set EFCORE2=2.2.0.19 -set EFCORE3=3.2.0.19 -set EFCORE5=5.2.0.19 +set EFCORE2=2.2.0.20-pre1 +set EFCORE3=3.2.0.20-pre1 +set EFCORE5=5.2.0.20-pre1 ::删除所有bin与obj下的文件 @echo off diff --git a/samples/Sample.SqlServer/Startup.cs b/samples/Sample.SqlServer/Startup.cs index 75a2823b..2a2dcb44 100644 --- a/samples/Sample.SqlServer/Startup.cs +++ b/samples/Sample.SqlServer/Startup.cs @@ -41,11 +41,11 @@ namespace Sample.SqlServer (conStr,builder) => builder.UseSqlServer(conStr).UseLoggerFactory(efLogger).UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking) //.ReplaceService()//支持sqlserver2008r2 );//使用链接字符串创建dbcontext - op.UseReadWriteConfiguration(sp => new List() - { - "Data Source=localhost;Initial Catalog=ShardingCoreDB1;Integrated Security=True;", - "Data Source=localhost;Initial Catalog=ShardingCoreDB2;Integrated Security=True;" - }, ReadStrategyEnum.Random); + //op.UseReadWriteConfiguration(sp => new List() + //{ + // "Data Source=localhost;Initial Catalog=ShardingCoreDB1;Integrated Security=True;", + // "Data Source=localhost;Initial Catalog=ShardingCoreDB2;Integrated Security=True;" + //}, ReadStrategyEnum.Random); op.AddShardingTableRoute(); op.AddShardingTableRoute(); });