Click or drag to resize

JoinOperandExtensionMethodsSetCustomFilter Method (IEntityRelation, IPredicate, Boolean)

Sets the CustomFilter on the specified relation. A custom filter is a predicate(-expression) which is appended to the ON clause created from the relation specified. If replacesOnClause is true, it replaces the ON clause with the filter specified.

Namespace:  SD.LLBLGen.Pro.QuerySpec
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax
public static IEntityRelation SetCustomFilter(
	this IEntityRelation relation,
	IPredicate filter,
	bool replacesOnClause
)

Parameters

relation
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityRelation
The relation.
filter
Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
The filter.
replacesOnClause
Type: SystemBoolean
if set to true the ON clause resulting from the relation is replaced with the filter specified.

Return Value

Type: IEntityRelation

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEntityRelation. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also