Click or drag to resize
BaseInfoAddDependencyDefaultDataWhereCondition Method
Adds default data where condition of given dependency on given dependencyIDColumn to given where condition. Returns original where condition if no such dependency exists.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
protected static string AddDependencyDefaultDataWhereCondition(
	string where,
	BaseInfo dependencyInfo,
	string dependencyIDColumn,
	bool recursive,
	string op = "AND",
	string dependencyTargetIDColumn = null,
	IEnumerable<string> excludedNames = null
)

Parameters

where
Type: SystemString
Original where condition
dependencyInfo
Type: CMS.DataEngineBaseInfo
BaseInfo of dependency object type.
dependencyIDColumn
Type: SystemString
Column with ID to specified dependency object.
recursive
Type: SystemBoolean
Indicates whether added dependency where condition should process its dependencies
op (Optional)
Type: SystemString
Operator used to connect old where with the new one. By default this is 'AND'.
dependencyTargetIDColumn (Optional)
Type: SystemString
Name of the column on dependency target object that contains dependency ID. By default ID column of the target object is used.
excludedNames (Optional)
Type: System.Collections.GenericIEnumerableString
Objects with display names and code names starting with these expressions are filtered out.

Return Value

Type: String
See Also