Click or drag to resize
SqlHelperQueriesEqual Method
Returns true if two queries equal by their content. Ignores extra whitespaces and comments within the comparison

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public static bool QueriesEqual(
	ref string query1,
	ref string query2,
	bool returnDifference = false
)

Parameters

query1
Type: SystemString
First query
query2
Type: SystemString
Second query
returnDifference (Optional)
Type: SystemBoolean
If true, the difference (remainders that don't match) are returned through original values

Return Value

Type: Boolean
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen query parameter is null
See Also