2021-11-27 21:41:45 +08:00
|
|
|
|
using ShardingCore.Core.EntityMetadatas;
|
|
|
|
|
using ShardingCore.Test2x.Domain.Entities;
|
|
|
|
|
using ShardingCore.VirtualRoutes.Mods;
|
|
|
|
|
|
|
|
|
|
namespace ShardingCore.Test2x.Shardings
|
|
|
|
|
{
|
|
|
|
|
public class SysUserModIntVirtualRoute:AbstractSimpleShardingModKeyIntVirtualTableRoute<SysUserModInt>
|
|
|
|
|
{
|
|
|
|
|
protected override bool EnableHintRoute => true;
|
2022-06-01 09:50:43 +08:00
|
|
|
|
//public override bool? EnableRouteParseCompileCache => true;
|
2021-11-27 21:41:45 +08:00
|
|
|
|
|
|
|
|
|
public SysUserModIntVirtualRoute() : base(2, 3)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Configure(EntityMetadataTableBuilder<SysUserModInt> builder)
|
|
|
|
|
{
|
|
|
|
|
builder.ShardingProperty(o => o.Id);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|