fix: 修复分库中数据路由Configure配置错误

This commit is contained in:
tnt group 2022-10-14 15:21:49 +08:00
parent 01b485e497
commit 4395d60c17
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ namespace Sample.SqlServerShardingDataSource.VirtualRoutes
public override void Configure(EntityMetadataDataSourceBuilder<Order> builder)
{
builder.ShardingProperty(o => o.Id);
builder.ShardingProperty(o => o.Area);
}
}
}

View File

@ -60,7 +60,7 @@ namespace Sample.SqlServerShardingDataSource.VirtualRoutes
public override void Configure(EntityMetadataDataSourceBuilder<SysUser> builder)
{
builder.ShardingProperty(o => o.Id);
builder.ShardingProperty(o => o.Area);
}
}
}