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.5.0.0 (5.5.18.1019)
Syntax public static Object[][] ObtainPkValuesFromListOfEntities(
IList listOfEntities,
IList pkFields
)
Public Shared Function ObtainPkValuesFromListOfEntities (
listOfEntities As IList,
pkFields As IList
) As Object()()
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