This commit is contained in:
xuejiaming 2021-09-07 13:36:12 +08:00
parent 020ef9c03d
commit 4f8d35a6b0
1 changed files with 1 additions and 14 deletions

View File

@ -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.