Click or drag to resize

LinqUtilsCreatePkFilterFromEntity Method

Creates a pk filter on the PK fields of the passed in entity with the values in the passed in entity. The objectAlias is the alias of the set to filter.

Namespace:  SD.LLBLGen.Pro.LinqSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.7.0.0 (5.7.0)
Syntax
public static IPredicateExpression CreatePkFilterFromEntity(
	IEntityCore entityInstance,
	SetAlias objectAlias,
	ITemplateGroupSpecificCreator creator,
	bool selfServicing,
	ComparisonOperator operatorToUse
)

Parameters

entityInstance
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityCore
The entity instance.
objectAlias
Type: SD.LLBLGen.Pro.LinqSupportClassesSetAlias
The object alias.
creator
Type: SD.LLBLGen.Pro.LinqSupportClassesITemplateGroupSpecificCreator
The creator.
selfServicing
Type: SystemBoolean
if set to true, the provider is for selfservicing, otherwise for adapter
operatorToUse
Type: SD.LLBLGen.Pro.ORMSupportClassesComparisonOperator
The operator to use.

Return Value

Type: IPredicateExpression
PredicateExpression with 1 or more FieldCompareValuePredicate instances
See Also