Click or drag to resize
LinqUtilsObtainPkValuesFromListOfEntities Method
Obtains the pk values from list of entities. It creates a new array, with listOfEntities.Count rows and fields.Count columns.

Namespace:  SD.LLBLGen.Pro.LinqSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.3.0.0 (5.3.0)
Syntax
public static Object[][] ObtainPkValuesFromListOfEntities(
	IList listOfEntities,
	IList pkFields
)

Parameters

listOfEntities
Type: System.CollectionsIList
The list of entities.
pkFields
Type: System.CollectionsIList
The pk fields.

Return Value

Type: Object
per column the PK field values for the entity corresponding with that row in listOfEntities. Per row, the pk values of the field at the same index in fields are stored (so if there is just 1 pk, the array has 1 array of values).
See Also