添加是否启用提示路由

This commit is contained in:
xuejiaming 2021-08-24 10:44:53 +08:00
parent 9ffb14304d
commit a15a4f61af
5 changed files with 8 additions and 4 deletions

View File

@ -1,8 +1,8 @@
:start
::定义版本
set EFCORE2=2.2.0.10-pre
set EFCORE3=3.2.0.10-pre
set EFCORE5=5.2.0.10-pre
set EFCORE2=2.2.0.11-pre
set EFCORE3=3.2.0.11-pre
set EFCORE5=5.2.0.11-pre
::删除所有bin与obj下的文件
@echo off

View File

@ -24,7 +24,7 @@ namespace ShardingCore.Core.VirtualRoutes.TableRoutes
/// <summary>
/// 启用提示路由
/// </summary>
protected virtual bool EnableHintRoute => true;
protected virtual bool EnableHintRoute => false;
/// <summary>
/// 跳过表达式路由
/// </summary>

View File

@ -16,6 +16,8 @@ namespace ShardingCore.Test50.Shardings
*/
public class SysUserModVirtualTableRoute : AbstractSimpleShardingModKeyStringVirtualTableRoute<SysUserMod>
{
protected override bool EnableHintRoute => true;
public SysUserModVirtualTableRoute() : base(2,3)
{
}

View File

@ -11,6 +11,7 @@ namespace ShardingCore.Test50_2x.Shardings
*/
public class SysUserModVirtualTableRoute : AbstractSimpleShardingModKeyStringVirtualTableRoute<SysUserMod>
{
protected override bool EnableHintRoute => true;
public SysUserModVirtualTableRoute() : base(2,3)
{
}

View File

@ -11,6 +11,7 @@ namespace ShardingCore.Test50_3x.Shardings
*/
public class SysUserModVirtualTableRoute : AbstractSimpleShardingModKeyStringVirtualTableRoute<SysUserMod>
{
protected override bool EnableHintRoute => true;
public SysUserModVirtualTableRoute() : base(2,3)
{
}