mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
- 完善 ExpressionCall 自定义表达式功能;
This commit is contained in:
parent
70b02c034e
commit
27acd4da08
@ -583,7 +583,7 @@ namespace FreeSql.Internal
|
|||||||
var sqlRet = exp3.Method.Invoke(null, exp3InvokeParams);
|
var sqlRet = exp3.Method.Invoke(null, exp3InvokeParams);
|
||||||
if (string.IsNullOrEmpty(ecc.Result) && sqlRet is string) ecc.Result = string.Concat(sqlRet);
|
if (string.IsNullOrEmpty(ecc.Result) && sqlRet is string) ecc.Result = string.Concat(sqlRet);
|
||||||
if (string.IsNullOrEmpty(ecc.Result)) ecc.Result = ecc.ParsedContent[exp3MethodParams[0].Name];
|
if (string.IsNullOrEmpty(ecc.Result)) ecc.Result = ecc.ParsedContent[exp3MethodParams[0].Name];
|
||||||
if (ecc?.UserParameters.Any() == true) tsc.dbParams?.AddRange(ecc.UserParameters);
|
if (ecc.UserParameters?.Any() == true) tsc.dbParams?.AddRange(ecc.UserParameters);
|
||||||
return ecc.Result;
|
return ecc.Result;
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
Loading…
x
Reference in New Issue
Block a user