Replies: 1 comment 1 reply
-
NoneParameter 和 GenerateCommandParameterWithLambda 是分开的两个设置,下面那个 Set 是表达式树解析参数化设置,要使用变量才生效。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
代码片段:
返回的 Sql 为:
可以看到 TradeTime 已参数化,但是 UpdatedTime 即使调用了 NoneParameter(false),也没有参数化。
背景为:我需要各个时间都带有毫秒,执行时发现有的有、有的没有,最终通过调试发现是写法不同造成的,未参数化的 UpdatedTime 被舍去了毫秒。
因为可以换写法解决,因此只在此提出来,若是设计如此请忽略。
Beta Was this translation helpful? Give feedback.
All reactions