Merge remote-tracking branch 'origin/main'

This commit is contained in:
xuejiaming 2022-07-24 09:49:40 +08:00
commit 052e9c8059
2 changed files with 5 additions and 4 deletions

View File

@ -1,9 +1,9 @@
:start
::定义版本
set EFCORE2=2.6.0.17
set EFCORE3=3.6.0.17
set EFCORE5=5.6.0.17
set EFCORE6=6.6.0.17
set EFCORE2=2.6.0.18
set EFCORE3=3.6.0.18
set EFCORE5=5.6.0.18
set EFCORE6=6.6.0.18
::删除所有bin与obj下的文件
@echo off

View File

@ -105,6 +105,7 @@ namespace Sample.MySql
}).UseConfig(o =>
{
o.ThrowIfQueryRouteNotMatch = false;
o.AutoUseWriteConnectionStringAfterWriteDb = true;
o.UseShardingQuery((conStr, builder) =>
{
builder.UseMySql(conStr, new MySqlServerVersion(new Version()))