SqlHelperAddColumnAlias Method |
Adds the column alias to the given expression
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax public static string AddColumnAlias(
string expression,
string alias,
bool ensureBrackets = true
)
Parameters
- expression
- Type: SystemString
Expression - alias
- Type: SystemString
Alias - ensureBrackets (Optional)
- Type: SystemBoolean
If true, the expression is encapsulated in brackets in case it is a complex expression
Return Value
Type:
StringSee Also