mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 10:49:36 +08:00
Synchronization code
This commit is contained in:
parent
c5ea948bed
commit
b452a5be30
@ -1560,6 +1560,11 @@ namespace SqlSugar
|
||||
{
|
||||
var orderValue = "";
|
||||
var newExp = (expression as LambdaExpression).Body as NewExpression;
|
||||
if (newExp == null)
|
||||
{
|
||||
orderValue = QueryBuilder.GetExpressionValue(expression, isSingle ? ResolveExpressType.FieldSingle : ResolveExpressType.FieldMultiple).GetResultString();
|
||||
return OrderBy(orderValue);
|
||||
}
|
||||
foreach (var item in newExp.Arguments)
|
||||
{
|
||||
if (item is MemberExpression)
|
||||
|
Loading…
Reference in New Issue
Block a user