发布x.3.2.x

This commit is contained in:
xuejiaming 2021-12-24 15:42:01 +08:00
parent 167c44be53
commit 6da62de08a
2 changed files with 5 additions and 5 deletions

View File

@ -1,9 +1,9 @@
:start
::定义版本
set EFCORE2=2.3.1.94
set EFCORE3=3.3.1.94
set EFCORE5=5.3.1.94
set EFCORE6=6.3.1.94
set EFCORE2=2.3.2.00-preview1
set EFCORE3=3.3.2.00-preview1
set EFCORE5=5.3.2.00-preview1
set EFCORE6=6.3.2.00-preview1
::删除所有bin与obj下的文件
@echo off

View File

@ -43,7 +43,7 @@ namespace Sample.SqlServerShardingTable
//如果您使用code-first建议修改为fsle
op.EnsureCreatedWithOutShardingTable = true;
//当无法获取路由时会返回默认值而不是报错
op.ThrowIfQueryRouteNotMatch = false;
op.ThrowIfQueryRouteNotMatch = true;
}).AddShardingTransaction((connection, builder) =>
{
builder.UseSqlServer(connection).UseLoggerFactory(efLogger);