1111
This commit is contained in:
parent
436ff1de22
commit
8bfe3a4521
13
README.md
13
README.md
|
@ -340,6 +340,19 @@ AbstractSimpleShardingYearKeyLongVirtualTableRoute |按时间戳 |yyyy | `>,>=,<
|
||||||
- startup是否已经添加虚拟路由
|
- startup是否已经添加虚拟路由
|
||||||
- startup是否已经添加bootstrapper.start()
|
- startup是否已经添加bootstrapper.start()
|
||||||
|
|
||||||
|
```c#
|
||||||
|
// //不支持MARS不支持追踪的
|
||||||
|
// services.AddShardingDbContext<DefaultShardingDbContext, DefaultTableDbContext>(o => o.UseSqlServer("Data Source=localhost;Initial Catalog=ShardingCoreDBxx2;Integrated Security=True;MultipleActiveResultSets=True;")
|
||||||
|
// ,op =>
|
||||||
|
// {
|
||||||
|
// op.EnsureCreatedWithOutShardingTable = true;
|
||||||
|
// op.CreateShardingTableOnStart = true;
|
||||||
|
// op.UseShardingConnOptions((connection, builder) => builder.UseSqlServer(connection).UseLoggerFactory(efLogger));
|
||||||
|
// op.UseShardingConnStrOptions((connstr, builder) => builder.UseSqlServer(connstr).UseLoggerFactory(efLogger));
|
||||||
|
// op.AddShardingTableRoute<SysUserModVirtualTableRoute>();
|
||||||
|
// });
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
# 计划
|
# 计划
|
||||||
- [提供官网如果该项目比较成功的话]
|
- [提供官网如果该项目比较成功的话]
|
||||||
|
|
Loading…
Reference in New Issue