What Changed
The Concat
function (merges its parameters into a single string) available in the CriteriaCompiler
and ExpressionEvaluator
classes converts "null" arguments to empty strings. This change only affects client-side calculations.
Previous Behavior
If any of the Concat function's parameters is "null", the function returns "null".
Reasons for Change
The previous behavior differs from other implementations of similar functions in other products (for example, the Microsoft's Concat
function in MSSqlServer or the standard String.Concat
method). In addition, we received a significant number of Support Center tickets where customers reported the previous behavior as unexpected and confusing.
Impact on Existing Apps
Your apps should not be affected by this change.
How to Revert to the Previous Behavior
Generally, you should not revert to the previous behavior. In case of a rare, unique scenario where you wish to get "null" when Concat accepts a "null" parameter, contact our Support Center for a solution.