From c59eeaa55190ebb77c54b05041295025ed286397 Mon Sep 17 00:00:00 2001 From: xuejiaming <326308290@qq.com> Date: Thu, 9 Mar 2023 14:16:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9E=9A=E4=B8=BE=E7=BC=96?= =?UTF-8?q?=E7=A0=81utf8=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- samples/Sample.MySql/Startup.cs | 2 +- .../PaginationConfigurations/PaginationMatchEnum.cs | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/samples/Sample.MySql/Startup.cs b/samples/Sample.MySql/Startup.cs index e37c565c..de256a37 100644 --- a/samples/Sample.MySql/Startup.cs +++ b/samples/Sample.MySql/Startup.cs @@ -101,7 +101,7 @@ namespace Sample.MySql // o.UseEntityFrameworkCoreProxies = true; o.ThrowIfQueryRouteNotMatch = false; o.AutoUseWriteConnectionStringAfterWriteDb = true; - + o.UseShardingQuery((conStr, builder) => { builder.UseMySql(conStr, new MySqlServerVersion(new Version())) diff --git a/src/ShardingCore/Sharding/PaginationConfigurations/PaginationMatchEnum.cs b/src/ShardingCore/Sharding/PaginationConfigurations/PaginationMatchEnum.cs index 44f614e0..9d7e74c8 100644 --- a/src/ShardingCore/Sharding/PaginationConfigurations/PaginationMatchEnum.cs +++ b/src/ShardingCore/Sharding/PaginationConfigurations/PaginationMatchEnum.cs @@ -1,8 +1,7 @@ using System; namespace ShardingCore.Sharding.PaginationConfigurations -{ - /* +{ /* * @Author: xjm * @Description: * @Date: Wednesday, 01 September 2021 21:27:25 @@ -12,15 +11,15 @@ namespace ShardingCore.Sharding.PaginationConfigurations public enum PaginationMatchEnum { /// - /// 必须是当前对象的属性 + /// 蹇呴』鏄綋鍓嶅璞$殑灞炴 /// Owner = 1, /// - /// 只要名称一样就可以了 + /// 鍙鍚嶇О涓鏍峰氨鍙互浜 /// Named = 1 << 1, /// - /// 仅第一个匹配就可以了 + /// 浠呯涓涓尮閰嶅氨鍙互浜 /// PrimaryMatch = 1 << 2 }