Click or drag to resize

JoinOperandExtensionMethodsSetCustomFilter Method (IEntityRelation, IPredicate)

Sets the CustomFilter on the specified relation, and passing false for ReplacesOnClause. A custom filter is a predicate(-expression) which is appended to the ON clause created from the relation specified.

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

Parameters

relation
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityRelation
The relation to set the CustomFilter on
filter
Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
The filter.

Return Value

Type: IEntityRelation
the relation

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