fix: 修复分库中数据路由Configure配置错误
This commit is contained in:
parent
01b485e497
commit
4395d60c17
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue