This commit is contained in:
parent
020ef9c03d
commit
4f8d35a6b0
|
@ -49,20 +49,7 @@ namespace Sample.SqlServer
|
|||
op.AddShardingTableRoute<SysUserModVirtualTableRoute>();
|
||||
op.AddShardingTableRoute<SysUserSalaryVirtualTableRoute>();
|
||||
});
|
||||
|
||||
////不支持MARS不支持追踪的
|
||||
//services.AddShardingDbContext<DefaultShardingDbContext, DefaultTableDbContext>(o => o.UseSqlServer("Data Source=localhost;Initial Catalog=ShardingCoreDBxx2;Integrated Security=True;")
|
||||
// , op =>
|
||||
// {
|
||||
// op.EnsureCreatedWithOutShardingTable = true;
|
||||
// op.CreateShardingTableOnStart = true;
|
||||
// //不支持mars额外加一条字符串的
|
||||
// op.UseShardingOptionsBuilder(
|
||||
// (connection, builder) => builder.UseSqlServer(connection).UseLoggerFactory(efLogger),
|
||||
// (connString, builder) => builder.UseSqlServer(connString).UseLoggerFactory(efLogger));
|
||||
|
||||
// op.AddShardingTableRoute<SysUserModVirtualTableRoute>();
|
||||
// });
|
||||
|
||||
}
|
||||
|
||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
|
|
Loading…
Reference in New Issue