mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update exp to sql
This commit is contained in:
parent
8447d96077
commit
5890321094
@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Reflection;
|
||||
@ -635,6 +636,24 @@ namespace SqlSugar
|
||||
//additem.Value = "";
|
||||
result.Add(additem);
|
||||
}
|
||||
else if (binding is MemberInitExpression || binding is NewExpression)
|
||||
{
|
||||
|
||||
var dic = ExpressionTool.GetNewExpressionItemList(binding);
|
||||
foreach (var kv in dic)
|
||||
{
|
||||
additem = new NewExpressionInfo();
|
||||
//var leftInfo = keys[i];
|
||||
additem.Type = nameof(NewExpression);
|
||||
additem.RightName = kv.Key;
|
||||
additem.ShortName = ExpressionTool.GetParameters(kv.Value).First().Name;
|
||||
additem.RightName = kv.Key;
|
||||
additem.LeftNameName = keys[i].Name+ "." + kv.Key;
|
||||
additem.RightDbName = kv.Key;
|
||||
//additem.Value = "";
|
||||
result.Add(additem);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
var value = baseResolve.GetNewExpressionValue(binding);
|
||||
|
Loading…
Reference in New Issue
Block a user