diff --git a/README.md b/README.md index 4755f552..76e259c9 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ Release | EF Core | .NET Standard | .NET (Core) --- | --- | --- | --- -[5.2.x.x](https://www.nuget.org/packages/ShardingCore/5.2.0.09) | >= 5.0.x | 2.1 | 3.0+ -[3.2.x.x](https://www.nuget.org/packages/ShardingCore/3.2.0.09) | 3.1.10 | 2.0 | 2.0+ -[2.2.x.x](https://www.nuget.org/packages/ShardingCore/2.2.0.09) | 2.2.6 | 2.0 | 2.0+ +[5.2.x.x](https://www.nuget.org/packages/ShardingCore/5.2.0.13) | >= 5.0.x | 2.1 | 3.0+ +[3.2.x.x](https://www.nuget.org/packages/ShardingCore/3.2.0.13) | 3.1.10 | 2.0 | 2.0+ +[2.2.x.x](https://www.nuget.org/packages/ShardingCore/2.2.0.13) | 2.2.6 | 2.0 | 2.0+ ### 数据库支持 数据库 | 是否支持 | 支持情况 --- | --- | --- @@ -95,11 +95,11 @@ Oracle | 支持 | 未测试 ## 安装 ```xml - + or - + or - + ``` ## 配置 @@ -295,7 +295,30 @@ AbstractSimpleShardingYearKeyLongVirtualTableRoute |按时间戳 |yyyy | `>,>=,< ``` ## 手动路由 ```c# - 后续支出 +ctor inject IShardingRouteManager shardingRouteManager + + public class SysUserModVirtualTableRoute : AbstractSimpleShardingModKeyStringVirtualTableRoute + { + /// + /// 开启提示路由 + /// + protected override bool EnableHintRoute => true; + protected override bool EnableAssertRoute => true; + + public SysUserModVirtualTableRoute() : base(2,3) + { + } + } + + + + + using (_shardingRouteManager.CreateScope()) + { + _shardingRouteManager.Current.TryCreateOrAddMustTail("00"); + + var mod00s = await _defaultTableDbContext.Set().Skip(10).Take(11).ToListAsync(); + } ``` ## 自动建表 diff --git a/nuget-publish.bat b/nuget-publish.bat index 6e975d3c..fe9e28db 100644 --- a/nuget-publish.bat +++ b/nuget-publish.bat @@ -1,8 +1,8 @@ :start ::定义版本 -set EFCORE2=2.2.0.12 -set EFCORE3=3.2.0.12 -set EFCORE5=5.2.0.12 +set EFCORE2=2.2.0.13 +set EFCORE3=3.2.0.13 +set EFCORE5=5.2.0.13 ::删除所有bin与obj下的文件 @echo off diff --git a/samples/Sample.SqlServer/Shardings/SysUserModVirtualTableRoute.cs b/samples/Sample.SqlServer/Shardings/SysUserModVirtualTableRoute.cs index dda48bf6..d7667d37 100644 --- a/samples/Sample.SqlServer/Shardings/SysUserModVirtualTableRoute.cs +++ b/samples/Sample.SqlServer/Shardings/SysUserModVirtualTableRoute.cs @@ -16,6 +16,9 @@ namespace Sample.SqlServer.Shardings */ public class SysUserModVirtualTableRoute : AbstractSimpleShardingModKeyStringVirtualTableRoute { + /// + /// ʾ· + /// protected override bool EnableHintRoute => true; protected override bool EnableAssertRoute => true;