Update DynamicCore

This commit is contained in:
sunkaixuan 2025-04-03 15:56:17 +08:00
parent df8a7384dc
commit e81c8e1fca
3 changed files with 7 additions and 2 deletions

View File

@ -1459,7 +1459,10 @@ namespace SqlSugar
expShortName, typeof(T),
columns,
args);
if (IsAppendNavColumns())
{
SetAppendNavColumns(selectObj.Exp);
}
var exp = DynamicCoreHelper.GetMember(typeof(T), selectObj.ResultNewType, expShortName, selectObj.formattableString);
var method = GetType().GetMethod("_Select", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)
.MakeGenericMethod(selectObj.ResultNewType);

View File

@ -28,6 +28,7 @@ namespace SqlSugar
var lambda = SqlSugarDynamicExpressionParser.ParseLambda(new[] { parameter }, null, newAnonymousTypeStr, args);
result.ResultNewType = lambda.Body.Type;
result.ShortName = shortName;
result.Exp = lambda;
return result;
}
@ -36,6 +37,7 @@ namespace SqlSugar
public FormattableString formattableString { get; set; }
public string ShortName { get; set; }
public Type ResultNewType { get; set; }
public LambdaExpression Exp { get; internal set; }
}
public static Expression<Func<T, bool>> GetWhere<T>(string shortName, FormattableString whereSql)
{

View File

@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCore</id>
<version>5.1.4.189-preview01</version>
<version>5.1.4.189-preview02</version>
<authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>