mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Synchronization code
This commit is contained in:
parent
f5dd9f01d6
commit
87e76af30b
@ -586,7 +586,7 @@ namespace SqlSugar
|
||||
parameterIndex = queryable.QueryBuilder.LambdaExpressions.ParameterIndex;
|
||||
}
|
||||
}
|
||||
else if (method.Method.Name == "OrderBy")
|
||||
else if (method.Method.Name.IsIn( "OrderBy", "ThenBy"))
|
||||
{
|
||||
var exp = method.Arguments[1];
|
||||
oredrBy.Add(" " + queryable.QueryBuilder.GetExpressionValue(exp, ResolveExpressType.WhereSingle).GetString());
|
||||
@ -606,7 +606,7 @@ namespace SqlSugar
|
||||
{
|
||||
Select(properyName, result, method, queryable);
|
||||
}
|
||||
else if (method.Method.Name == "OrderByDescending")
|
||||
else if (method.Method.Name.IsIn("OrderByDescending", "ThenByDescending"))
|
||||
{
|
||||
var exp = method.Arguments[1];
|
||||
oredrBy.Add(" " + queryable.QueryBuilder.GetExpressionValue(exp, ResolveExpressType.WhereSingle).GetString() + " DESC");
|
||||
|
Loading…
Reference in New Issue
Block a user