Click or drag to resize
SqlHelperGetComment Method
Gets a multiline SQL comment for simple input text (must not contain any open comment sequence)

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public static string GetComment(
	string text,
	bool newLine = true
)

Parameters

text
Type: SystemString
Comment text
newLine (Optional)
Type: SystemBoolean
If true, new line is added before the comment

Return Value

Type: String
Remarks
Input text with comment sequence could cause an invalid SQL syntax.
See Also