Click or drag to resize
DataAccessAdapterCoreCreatePrimaryKeyFilters Method
Creates for each entity which PK field(s) are in the passed in arraylist a new predicate expression which filters on the primary key fields of that entity and the set values for the given primary key fields. If no primary key fields are specified, null is returned.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax
public virtual List<IPredicate> CreatePrimaryKeyFilters(
	IList primaryKeyFields
)

Parameters

primaryKeyFields
Type: System.CollectionsIList
ArrayList with IEntityField2 instances which form the primary key for which the filter has to be constructed

Return Value

Type: ListIPredicate
ArrayList with for each entity a filled in predicate expression or null if no primary key fields are specified. PK filters are stored in the same order as entities appear in the pkfields, which is the same order in which entities are located in the hierarchy (from root to leaf)
Remarks
Call this method passing IEntity2.Fields.PrimaryKeyFields
See Also