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.6.0.0 (5.6.19.0117)
Syntax public static IPredicateExpression CreatePkFilterFromEntity(
IEntityCore entityInstance,
SetAlias objectAlias,
ITemplateGroupSpecificCreator creator,
bool selfServicing,
ComparisonOperator operatorToUse
)
Public Shared Function CreatePkFilterFromEntity (
entityInstance As IEntityCore,
objectAlias As SetAlias,
creator As ITemplateGroupSpecificCreator,
selfServicing As Boolean,
operatorToUse As ComparisonOperator
) As IPredicateExpression
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