SqlHelper GetCase Method Kentico 8.1 API Reference
Returns statement for the CASE expressions.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

cases
Type: OnlineSystem.Collections.Generic IEnumerable OnlineKeyValuePair OnlineString, OnlineString  
IEnumerable with KeyValuePair where key is a boolean expression (where condition) and value is result expression
elseCase (Optional)
Type: OnlineSystem String
Expression for the else case
escapeString (Optional)
Type: OnlineSystem Boolean
Determines whether escape cases' values or not

Return Value

Type: OnlineString
See Also