发布x.3.2.x
This commit is contained in:
parent
167c44be53
commit
6da62de08a
|
@ -1,9 +1,9 @@
|
||||||
:start
|
:start
|
||||||
::定义版本
|
::定义版本
|
||||||
set EFCORE2=2.3.1.94
|
set EFCORE2=2.3.2.00-preview1
|
||||||
set EFCORE3=3.3.1.94
|
set EFCORE3=3.3.2.00-preview1
|
||||||
set EFCORE5=5.3.1.94
|
set EFCORE5=5.3.2.00-preview1
|
||||||
set EFCORE6=6.3.1.94
|
set EFCORE6=6.3.2.00-preview1
|
||||||
|
|
||||||
::删除所有bin与obj下的文件
|
::删除所有bin与obj下的文件
|
||||||
@echo off
|
@echo off
|
||||||
|
|
|
@ -43,7 +43,7 @@ namespace Sample.SqlServerShardingTable
|
||||||
//如果您使用code-first建议修改为fsle
|
//如果您使用code-first建议修改为fsle
|
||||||
op.EnsureCreatedWithOutShardingTable = true;
|
op.EnsureCreatedWithOutShardingTable = true;
|
||||||
//当无法获取路由时会返回默认值而不是报错
|
//当无法获取路由时会返回默认值而不是报错
|
||||||
op.ThrowIfQueryRouteNotMatch = false;
|
op.ThrowIfQueryRouteNotMatch = true;
|
||||||
}).AddShardingTransaction((connection, builder) =>
|
}).AddShardingTransaction((connection, builder) =>
|
||||||
{
|
{
|
||||||
builder.UseSqlServer(connection).UseLoggerFactory(efLogger);
|
builder.UseSqlServer(connection).UseLoggerFactory(efLogger);
|
||||||
|
|
Loading…
Reference in New Issue