mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 12:33:44 +08:00
Synchronization code
This commit is contained in:
@@ -1560,6 +1560,11 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
var orderValue = "";
|
var orderValue = "";
|
||||||
var newExp = (expression as LambdaExpression).Body as NewExpression;
|
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)
|
foreach (var item in newExp.Arguments)
|
||||||
{
|
{
|
||||||
if (item is MemberExpression)
|
if (item is MemberExpression)
|
||||||
|
Reference in New Issue
Block a user