SelectConditionPrepareConditionT Method |
Prepares the select condition for specific value types
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntax 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 Remarks
Null values are ignored.
See Also