Click or drag to resize
SqlHelperGetWhereConditionT Method (String, IEnumerableString, Boolean, Boolean)
Creates the where condition for the array of values.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public static string GetWhereCondition<T>(
	string columnName,
	IEnumerable<string> values,
	bool useUnicode,
	bool negation = false
)

Parameters

columnName
Type: SystemString
Column name
values
Type: System.Collections.GenericIEnumerableString
Values
useUnicode
Type: SystemBoolean
Indicates if the preposition 'N' should be used for string values
negation (Optional)
Type: SystemBoolean
Indicates if NOT IN should be used

Type Parameters

T
Value type

Return Value

Type: String
See Also