Click or drag to resize

PersistenceCore.ProduceFieldInfoToOrdinalsLookups Method

Produces the field info to ordinals lookups, which are used during the fetch of one or more entities.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
public static int ProduceFieldInfoToOrdinalsLookups(
	InheritanceHierarchyType typeOfHierarchy,
	IFieldPersistenceInfo[] fieldsPersistenceInfo,
	IEntityFieldsCore fieldsUsedForQuery,
	out Dictionary<string, int> hierarchyFieldValueArrayLengths,
	out Dictionary<string, int> entityFieldStartIndexesPerEntity
)

Parameters

typeOfHierarchy
Type: SD.LLBLGen.Pro.ORMSupportClasses.InheritanceHierarchyType
The type of hierarchy.
fieldsPersistenceInfo
Type:SD.LLBLGen.Pro.ORMSupportClasses.IFieldPersistenceInfo[]
The fields persistence infos.
fieldsUsedForQuery
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityFieldsCore
The fields used for the query. Can be null, in which case the caller is assumed to be a projector so there are no excluded fields and field persistence info is not available.
hierarchyFieldValueArrayLengths
Type: System.Collections.Generic.Dictionary<String, Int32>
Dictionary which is used to define per entity in the fieldsUsedInQuery the length of the array fragments per entity name. Use this together with entityFieldStartIndexesPerEntity in TPE inheritance scenarios
entityFieldStartIndexesPerEntity
Type: System.Collections.Generic.Dictionary<String, Int32>
Dictionary which is used in inheritance scenarios to determine the start of the subtype fragments in the resultset.

Return Value

Type: Int32
the number of fields to fetch (thus the # of fields minus the # of excluded fields.)
See Also