Skip to content

Commit 59b3abc

Browse files
committed
修复CreateShardingTableOnStart为false时没有后缀表在系统里面
1 parent c24edd3 commit 59b3abc

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
Release | EF Core | .NET Standard | .NET (Core) | Sql Server | [Pomelo.EntityFrameworkCore.MySql](https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql)
1010
--- | --- | --- | --- | --- | ---
11-
[5.1.x.x](https://www.nuget.org/packages/ShardingCore/5.1.0.20) | >= 5.0.x | 2.1 | 3.0+ | >= 2012 | 5.0.0
12-
[3.1.x.x](https://www.nuget.org/packages/ShardingCore/3.1.0.20) | 3.1.10 | 2.0 | 2.0+ | >= 2012 | 3.2.4
13-
[2.1.x.x](https://www.nuget.org/packages/ShardingCore/2.1.0.20) | 2.2.6 | 2.0 | 2.0+ | >= 2008 | 2.2.6
11+
[5.1.x.x](https://www.nuget.org/packages/ShardingCore/5.1.0.21) | >= 5.0.x | 2.1 | 3.0+ | >= 2012 | 5.0.0
12+
[3.1.x.x](https://www.nuget.org/packages/ShardingCore/3.1.0.21) | 3.1.10 | 2.0 | 2.0+ | >= 2012 | 3.2.4
13+
[2.1.x.x](https://www.nuget.org/packages/ShardingCore/2.1.0.21) | 2.2.6 | 2.0 | 2.0+ | >= 2008 | 2.2.6
1414

1515

1616
- [开始](#开始)

nuget-publish.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
:start
22
::定义版本
3-
set EFCORE2=2.1.0.20
4-
set EFCORE3=3.1.0.20
5-
set EFCORE5=5.1.0.20
3+
set EFCORE2=2.1.0.21
4+
set EFCORE3=3.1.0.21
5+
set EFCORE5=5.1.0.21
66

77
::删除所有bin与obj下的文件
88
@echo off

src/ShardingCore/ShardingBootstrapper.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,12 @@ private void CreateDataTable(string connectKey, IVirtualTable virtualTable)
231231
}
232232
}
233233
}
234+
else
235+
{
236+
//添加物理表
237+
virtualTable.AddPhysicTable(new DefaultPhysicTable(virtualTable, tail));
238+
}
234239

235-
236240
}
237241
}
238242
}

0 commit comments

Comments
 (0)