From 76b1e5d1de6bcdd0965dd84f69a936a34bd6972b Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 16 May 2022 15:49:43 +0800 Subject: [PATCH] Code optimization --- .../OneToOneNavgateExpressionN.cs | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/OneToOneNavgateExpressionN.cs b/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/OneToOneNavgateExpressionN.cs index accf93e92..c34e56e00 100644 --- a/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/OneToOneNavgateExpressionN.cs +++ b/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/OneToOneNavgateExpressionN.cs @@ -75,17 +75,6 @@ namespace SqlSugar MapperSql.Sql = "( " + queryable.ToSql().Key + " ) "; return MapperSql; } - private string ToShortName(string name) - { - if (name.ObjToString().Contains(".")) - { - return name.Replace(".", "_"); - } - else - { - return name; - } - } private bool ValidateIsJoinMember(bool result, MemberExpression memberExp, Expression childExpression) { if (childExpression != null && childExpression is MemberExpression) @@ -132,6 +121,17 @@ namespace SqlSugar #endregion #region Helper + private string ToShortName(string name) + { + if (name.ObjToString().Contains(".")) + { + return name.Replace(".", "_"); + } + else + { + return name; + } + } private static bool IsParameter(Expression child2Expression) {