mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Code optimization
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user