mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Synchronization code
This commit is contained in:
@@ -108,6 +108,14 @@ namespace SqlSugar
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (context.Expression is MemberInitExpression memberInitExpression)
|
||||
{
|
||||
var getParameters = ExpressionTool.GetParameters(context.Expression).Select(it=>it.Name).Distinct().ToList();
|
||||
if (getParameters?.Count()>1)
|
||||
{
|
||||
context.SingleTableNameSubqueryShortName = getParameters.First();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Check.ExceptionEasy( "I'm sorry I can't parse the current expression","不支持当前表达式");
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<package >
|
||||
<metadata>
|
||||
<id>SqlSugarCore</id>
|
||||
<version>5.1.4.136</version>
|
||||
<version>5.1.4.137-preview07</version>
|
||||
<authors>sunkaixuan</authors>
|
||||
<owners>果糖大数据科技</owners>
|
||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||
|
Reference in New Issue
Block a user