Click or drag to resize

LinqUtilsCreatePredicateExpressionFromCorrelationRelation Method (IEntityRelation, ITemplateGroupSpecificCreator, MappingTracker, ListIEntityFieldCore)

Creates a predicate expression from the correlation relation passed in. It aliases all fields to the start/end alias set, and creates field compare field predicates (FieldCompareExpression instances) which are added with AND to the expression to return

Namespace:  SD.LLBLGen.Pro.LinqSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax
public static IPredicateExpression CreatePredicateExpressionFromCorrelationRelation(
	IEntityRelation correlationRelation,
	ITemplateGroupSpecificCreator frameworkElementCreator,
	MappingTracker trackedMappings,
	out List<IEntityFieldCore> pkFieldsOfcorrelation
)

Parameters

correlationRelation
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityRelation
The correlation relation.
frameworkElementCreator
Type: SD.LLBLGen.Pro.LinqSupportClassesITemplateGroupSpecificCreator
The framework element creator.
trackedMappings
Type: SD.LLBLGen.Pro.LinqSupportClassesMappingTracker
The tracked mappings.
pkFieldsOfcorrelation
Type: System.Collections.GenericListIEntityFieldCore
The pk fields ofcorrelation.

Return Value

Type: IPredicateExpression
a PredicateExpression with predicates which can be used to tie a correlated subquery to the outer query.
See Also