Click or drag to resize
SelectConditionPrepareConditionT Method
Prepares the select condition for specific value types

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 11.0.0
Syntax
C#
public void PrepareCondition<T>(
	string columnName,
	ICollection<T> values,
	bool negation = false
)

Parameters

columnName
Type: SystemString
Column name
values
Type: System.Collections.GenericICollectionT
Values for the IN expression
negation (Optional)
Type: SystemBoolean
Indicates if the negation should be used in the condition (Column NOT IN (1, 2, 3 ...))

Type Parameters

T
Method will prepare the condition over Int32, Int64, String or Guid.
Exceptions
ExceptionCondition
NotSupportedExceptionThrown when unsupported value type is used.
Remarks
Null values are ignored.
Remarks
If values contains only one item, WhereEquals condition is used
See Also