- Lambda 参数化功能的 bug 解决

This commit is contained in:
28810
2019-11-22 23:58:01 +08:00
parent 5f0e66a749
commit 58ba86b5f2
19 changed files with 19 additions and 146 deletions

View File

@@ -504,6 +504,7 @@ namespace FreeSql.Internal
public string ExpressionLambdaToSql(Expression exp, ExpTSC tsc)
{
if (exp == null) return "";
if (tsc.dbParams != null && tsc.mapColumnTmp != null && tsc.mapColumnTmp.CsType.NullableTypeOrThis() != exp.Type) tsc.SetMapColumnTmp(null);
if (tsc.isDisableDiyParse == false && _common._orm.Aop.ParseExpression != null)
{
var args = new Aop.ParseExpressionEventArgs(exp, ukexp => ExpressionLambdaToSql(ukexp, tsc.CloneDisableDiyParse()));