修改readme的demo

This commit is contained in:
xuejiaming 2022-10-25 08:39:42 +08:00
parent 98e3687a46
commit 048b1481d9
2 changed files with 0 additions and 4 deletions

View File

@ -208,8 +208,6 @@ dbcontext `AbstractShardingDbContext`和`IShardingTableDbContext`如果你是普
{ {
app.UseDeveloperExceptionPage(); app.UseDeveloperExceptionPage();
} }
//not required, enable job auto create table 非必须 启用自动创建表的任务
app.ApplicationServices.UseAutoShardingCreate();
//not required, enable check table missing and auto create,非必须 启动检查缺少的表并且创建 //not required, enable check table missing and auto create,非必须 启动检查缺少的表并且创建
app.ApplicationServices.UseAutoTryCompensateTable(); app.ApplicationServices.UseAutoTryCompensateTable();
// other configure.... // other configure....

View File

@ -215,8 +215,6 @@ u need modify `AddDefaultDataSource` method second param(connection string),don'
{ {
app.UseDeveloperExceptionPage(); app.UseDeveloperExceptionPage();
} }
//not required, enable job auto create table 非必须 启用自动创建表的任务
app.ApplicationServices.UseAutoShardingCreate();
//not required, enable check table missing and auto create,非必须 启动检查缺少的表并且创建 //not required, enable check table missing and auto create,非必须 启动检查缺少的表并且创建
app.ApplicationServices.UseAutoTryCompensateTable(); app.ApplicationServices.UseAutoTryCompensateTable();
// other configure.... // other configure....