using System; using ShardingCore.Core.EntityMetadatas; using ShardingCore.Test2x.Domain.Entities; using ShardingCore.VirtualRoutes.Years; namespace ShardingCore.Test2x.Shardings { public class LogYearLongVirtualRoute:AbstractSimpleShardingYearKeyLongVirtualTableRoute { protected override bool EnableHintRoute => true; //public override bool? EnableRouteParseCompileCache => true; public override void Configure(EntityMetadataTableBuilder builder) { builder.ShardingProperty(o => o.LogTime); } public override bool AutoCreateTableByTime() { return true; } public override DateTime GetBeginTime() { return new DateTime(2021, 1, 1); } } }