SqlHelper GetCaseColumn Method Kentico 8.0 API Reference
Returns statement for column with case expressions. This statement is used for evaluating a set of boolean expressions to determine the result. First case has highest priority.

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

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
asColumnName (Optional)
Type: OnlineSystem String
Specifies column name

Return Value

Type: OnlineString
See Also