Browse Source

Code optimization

pull/19/head
sunkaixuan 3 years ago
parent
commit
76b1e5d1de
  1. 22
      Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/OneToOneNavgateExpressionN.cs

22
Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/OneToOneNavgateExpressionN.cs

@ -75,17 +75,6 @@ namespace SqlSugar
MapperSql.Sql = "( " + queryable.ToSql().Key + " ) "; MapperSql.Sql = "( " + queryable.ToSql().Key + " ) ";
return MapperSql; 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) private bool ValidateIsJoinMember(bool result, MemberExpression memberExp, Expression childExpression)
{ {
if (childExpression != null && childExpression is MemberExpression) if (childExpression != null && childExpression is MemberExpression)
@ -132,6 +121,17 @@ namespace SqlSugar
#endregion #endregion
#region Helper #region Helper
private string ToShortName(string name)
{
if (name.ObjToString().Contains("."))
{
return name.Replace(".", "_");
}
else
{
return name;
}
}
private static bool IsParameter(Expression child2Expression) private static bool IsParameter(Expression child2Expression)
{ {

Loading…
Cancel
Save