mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-15 20:49:31 +08:00
Update DynamicCore
This commit is contained in:
parent
df8a7384dc
commit
e81c8e1fca
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user