修正readme

This commit is contained in:
xuejiaming 2022-01-20 21:17:31 +08:00
parent 8ea5c652c6
commit a66b3cbf05
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ dbcontext `AbstractShardingDbContext`和`IShardingTableDbContext`如果你是普
{
//额外添加分片配置
services.AddShardingConfigure<MyDbContext>()
services.AddShardingDbContext<MyDbContext>()
.AddEntityConfig(op =>
{
op.CreateShardingTableOnStart = true;

View File

@ -161,7 +161,7 @@ dbcontext `AbstractShardingDbContext`和`IShardingTableDbContext`如果你是普
{
//额外添加分片配置
services.AddShardingConfigure<MyDbContext>()
services.AddShardingDbContext<MyDbContext>()
.AddEntityConfig(op =>
{
op.CreateShardingTableOnStart = true;