Click or drag to resize
BaseInfoGetUniqueNameWhereCondition Method
Constructs base where condition for checking column value uniqueness. This method can be overridden in child classes to add more conditions.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
protected virtual WhereCondition GetUniqueNameWhereCondition(
	string columnName,
	string searchName,
	int currentObjectId,
	bool exactMatch
)

Parameters

columnName
Type: SystemString
Name of the column in which the uniqueness should be preserved (CodeNameColumn/DisplayNameColumn)
searchName
Type: SystemString
Name which should be saved in the column (eventually with suffix)
currentObjectId
Type: SystemInt32
ID of the current object (this object will be excluded from the search for duplicate names)
exactMatch
Type: SystemBoolean
If true, the names must match exactly

Return Value

Type: WhereCondition
Where condition used to check for name uniqueness
See Also