From 4f8d35a6b04541bc5e3a48d3389579ed54f747f1 Mon Sep 17 00:00:00 2001 From: xuejiaming <326308290@qq.com> Date: Tue, 7 Sep 2021 13:36:12 +0800 Subject: [PATCH] 1 --- samples/Sample.SqlServer/Startup.cs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/samples/Sample.SqlServer/Startup.cs b/samples/Sample.SqlServer/Startup.cs index 2a2dcb44..c3039a8e 100644 --- a/samples/Sample.SqlServer/Startup.cs +++ b/samples/Sample.SqlServer/Startup.cs @@ -49,20 +49,7 @@ namespace Sample.SqlServer op.AddShardingTableRoute(); op.AddShardingTableRoute(); }); - - ////不支持MARS不支持追踪的 - //services.AddShardingDbContext(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(); - // }); + } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.