|
10 | 10 |
|
11 | 11 | Release | EF Core | .NET Standard | .NET (Core) |
12 | 12 | --- | --- | --- | --- |
13 | | -[5.2.x.x](https://www.nuget.org/packages/ShardingCore/5.2.0.09) | >= 5.0.x | 2.1 | 3.0+ |
14 | | -[3.2.x.x](https://www.nuget.org/packages/ShardingCore/3.2.0.09) | 3.1.10 | 2.0 | 2.0+ |
15 | | -[2.2.x.x](https://www.nuget.org/packages/ShardingCore/2.2.0.09) | 2.2.6 | 2.0 | 2.0+ |
| 13 | +[5.2.x.x](https://www.nuget.org/packages/ShardingCore/5.2.0.13) | >= 5.0.x | 2.1 | 3.0+ |
| 14 | +[3.2.x.x](https://www.nuget.org/packages/ShardingCore/3.2.0.13) | 3.1.10 | 2.0 | 2.0+ |
| 15 | +[2.2.x.x](https://www.nuget.org/packages/ShardingCore/2.2.0.13) | 2.2.6 | 2.0 | 2.0+ |
16 | 16 | ### 数据库支持 |
17 | 17 | 数据库 | 是否支持 | 支持情况 |
18 | 18 | --- | --- | --- |
@@ -95,11 +95,11 @@ Oracle | 支持 | 未测试 |
95 | 95 |
|
96 | 96 | ## 安装 |
97 | 97 | ```xml |
98 | | -<PackageReference Include="ShardingCore" Version="5.2.0.09" /> |
| 98 | +<PackageReference Include="ShardingCore" Version="LastVersion" /> |
99 | 99 | or |
100 | | -<PackageReference Include="ShardingCore" Version="3.2.0.09" /> |
| 100 | +<PackageReference Include="ShardingCore" Version="LastVersion" /> |
101 | 101 | or |
102 | | -<PackageReference Include="ShardingCore" Version="2.2.0.09" /> |
| 102 | +<PackageReference Include="ShardingCore" Version="LastVersion" /> |
103 | 103 | ``` |
104 | 104 |
|
105 | 105 | ## 配置 |
@@ -295,7 +295,30 @@ AbstractSimpleShardingYearKeyLongVirtualTableRoute |按时间戳 |yyyy | `>,>=,< |
295 | 295 | ``` |
296 | 296 | ## 手动路由 |
297 | 297 | ```c# |
298 | | - 后续支出 |
| 298 | +ctor inject IShardingRouteManager shardingRouteManager |
| 299 | + |
| 300 | + public class SysUserModVirtualTableRoute : AbstractSimpleShardingModKeyStringVirtualTableRoute<SysUserMod> |
| 301 | + { |
| 302 | + /// <summary> |
| 303 | + /// 开启提示路由 |
| 304 | + /// </summary> |
| 305 | + protected override bool EnableHintRoute => true; |
| 306 | + protected override bool EnableAssertRoute => true; |
| 307 | + |
| 308 | + public SysUserModVirtualTableRoute() : base(2,3) |
| 309 | + { |
| 310 | + } |
| 311 | + } |
| 312 | + |
| 313 | + |
| 314 | + |
| 315 | + |
| 316 | + using (_shardingRouteManager.CreateScope()) |
| 317 | + { |
| 318 | + _shardingRouteManager.Current.TryCreateOrAddMustTail<SysUserMod>("00"); |
| 319 | + |
| 320 | + var mod00s = await _defaultTableDbContext.Set<SysUserMod>().Skip(10).Take(11).ToListAsync(); |
| 321 | + } |
299 | 322 | ``` |
300 | 323 |
|
301 | 324 | ## 自动建表 |
|
0 commit comments